Let be a ring. The following is a commutative diagram of module homomorphisms, and the rows are exact.

Suppose that is surjective and that is an isomorphism. Prove that is an isomorphism.

Attempt

Onto- and both and are both onto so is onto.

1-1- This one doesn't seem as trivial. I am a bit confused on showing this.

Thanks in advance for any hints.