Suppose f, g and h are all mappings of a set A into itself. (a)
Prove that if g is onto and f ◦ g = h ◦ g, then f = h. (b) Prove
that if f is one-to-one and f ◦ g = f ◦ h, then g = h.