f: A→B, g: B→A

Is g ° f defined? If so, what is its domain and range?