Recently, I've been doing a recap of (basic) category theory and found an old exercise I seem to be unable to solve. The question is as follows.
Let $A, B$ be abelian groups, $A'<A$ and $B'<B$ subroups and $\phi:A\to B$ such that $\phi(A')\subseteq B'$. Let $\phi':A'\to B'$ and $\phi'':A/A'\to B/B'$ be the maps induced by $\phi$. Prove that the diagram
\begin{array} AA' & \to & A \\ \downarrow{\phi'} & & \downarrow{\phi} \\ B' & \to & B \end{array}
is a cocartisian square if and only if $\phi''$ is an isomorphism.
The exercise preceding this one looks like a dual statement which I did manage to prove (a similar square being cartesian iff $\phi'$ is an iso), yet just dualising the proof doesn't seem to work. That proof, however, suggests using the universal property of cocartesian squares for one of the implications ($\Rightarrow$), while using the explicit construction of pushouts in the category of abelian for the other one. The pushout of $A_1\overset{f_1}{\leftarrow} A_3 \overset{f_2}{\rightarrow} A_2$ in this category is given by $A_1\oplus A_2/\{(f_1(x),-f_2(x))\mid x\in A_3\}$.
Can anyone provide me with a proof, or give a sketch of proof that might point out which step I fail to see just yet?