This is the problem I am attempting:
Let $M$ be a finitely generated $A$-module and $f: M \rightarrow A^n$ a surjective homomorphism. Show that $\ker(f)$ is finitely generated.
Following a hint in the book and from another question here, I'm confident I have shown that $M$ is a direct sum of $\ker(f)$ and the set of $u_i$ ($i=1,\dots,n$) where $f(u_i)=e_i$ and the set of $e_i$ generates $A^n$, and I know that if $z$ is an element of $\ker(f)$, and $x_1, x_2, ..., x_m$ are a generating set for $M$, I can write $x_i - (a_{i1}u_1 + a_{i2}u_2 + \cdots + a_{in} u_n) \in \ker(f)$ for each i from 1 to m, and $z = b_1x_1 + b_2x_2 + \cdots + b_mx_m$. This is where I'm stuck: I would like to say that $y_i := x_i - (a_{i1}u_1 + a_{i2}u_2 + \cdots + a_{in}u_n)$ is a set of elements of $\ker(f)$ and somehow create a generating set for $\ker(f)$ using the fact with $z$ above and the set of $y_i$'s, but I'm not sure of any valid way to do it.
(Note that every instance of $a_i$ or $b_i$ is an element of $A$ in the above)