Let A = {a, b c}, B = {u, v, w} and let f and g be two functions from A to B and from B to A respectively defined as: f = {(a, v), (b, u), (c, w)}, g = {(u, b), (v, a), (w, c)}.