12.1.2:

12.1.4:

Let {x1, ... , xr} be a maximal linearly independent set in the submodule N, and {y1+N, ... , ys+N} a maximal linearly independent set in the quotient M/N. First we claim {x1, ... , xr,y1, ... , ys} is linearly independent in M. Suppose t1x1+ ... + trxr + u1y1 + ... + usys = 0. Then u1y1 + ... + usys= - (t1x1+ ... + trxr) lies in N, so u1(y1 + N) + ... + us( ys+N) = 0 in M/N, so u1= ... = us= 0. Then t1x1+ ... + trxr = 0, so t1= ...= tr = 0. This proves the claim. Now, suppose x is in M. Then there is some nonzero r such that r(x+N) is in the submodule generated by {y1+N, ... , ys+N}. Then rx is in u1y1 + ... + usys+N for some ring elements u1, ... , us. Then rx = u1y1 + ... + usys+ t1x1+ ... + trxr for some ring elements t1, ... , tr. It follows that {x1, ... , xr,y1, ... , ys} is a maximal linearly independent subset of M, so that M has rank r + s.