If $g \circ f$ is surjective, what can you say about the surjectivity of $f$ and $g$?
What can you say about $f$ and $g$ in the case that $fg$ is 1) Injective, 2) Surjective - Cohn - Classic Algebra Page 15