Let $R$ be a local ring with maximal ideal $\mathscr M$. Let, $M$ be a finitely generated $R$-module. Let, $x_1,x_2,\cdots,x_n\in M$ such that $\{\bar{x_1},\bar{x_2},\cdots ,\bar{x_n}\}$ is a basis of $M/M\mathscr{M}$ over $R/\mathscr{M}$. Then show that $\{x_1,x_2,\cdots , x_n\}$ generates $M$.
Let, $N$ be a submodule of $M$ which is spanned by $\{x_1,x_2,\cdots,x_n\}$. Then if I can show that $N+\mathscr{M}M=M$ then using Nakayama's lemma I have done. But I'm stuck here to show $N+\mathscr{M}M=M$.
How I can show it? Any hint. ?