Suppose a composition $g\circ f$ that is injective. Prove $f$ is too.
Where $f:A\mapsto B$ and $g:B\mapsto C$
If $g\circ f$ is injective then $(g\circ f)(a_1)=(g\circ f)(a_2)\implies f(a_1)=f(a_2)$, which proves that $g$ is injective.
But I have a problem trying to prove $f$ is injective.