Suppose $f:A\to C$ is a surjection and let $g:A\to B$ be an injection. $g$ has a partial inverse $g^{-1}:g(A)\to A$ and then $f\circ g^{-1}:g(A)\to C$ is onto. If we arbitrarily extend $f\circ g^{-1}$ to $B$, then we get a surjection from $B$ onto $C$, contradiction.