I am trying to solve the following problem.
Let $M$ be a module over a commutative ring $A$ with identity. $M'\subseteq M$ is a simple submodule. Also, $N=M/M'$ is simple. Assume that $N$ is not isomorphic to $M'$.
Prove that $M\cong M'\oplus N$
Hint: Look at $m_0\in M$ such that $M'+m_0$ generates $N$ and consider $\langle m_0\rangle$.
This is what I have done so far:
Since $N=\langle \overline{m_0}\rangle$ for all $m\in M$ we have $$\overline{m}=c_m\overline{m_0}$$ for some $c_m\in A$.
This means that $m-c_mm_0\in M'$ for all $m$.
Since $M'$ is simple we have $M'=\langle m'\rangle$ for some $m'\in M$.
Since $m-c_mm_0\in M'$ it follows that $$m-c_mm_0=d_mm'$$ for some $d_m\in A$. So $$m=c_mm_0+d_mm'$$
It follows that $$M=M'+\langle m_0\rangle$$
From here I don't know what to do next. Any ideas?