I am a postgraduate student studying final year.We have a course on module theory.Our instructor told us that if $M$ is an $R$-module with finite basis $\mathcal B=\{x_1,x_2,...,x_k\}$,then we will say that a submodule $N\subset M$ has a basis compatible with $\mathcal B$ if $\exists $ $m\leq k$ and $d_1,d_2,...,d_m\in R$ such that $\mathcal B'=\{d_1x_1,...,d_mx_m\}$ is a basis of $N$.
Then he proved a result:
Theorem:
If $\mathcal B'$ is compatible with $\mathcal B=\{x_1,x_2,...,x_k\}$,then $M/N\simeq R^k/\langle d_1e_1,...,d_me_m\rangle\simeq (R/d_1R)\oplus...\oplus (R/d_m R)\oplus R^{k-m}$.
I want to know the motivation behind a compatible basis.Thinking of this concept seems to be coming out of the blue.It is hard to visualize a compatible basis other than saying that it 'scales' the original basis.But that too is not like vector spaces as scalars are not invertible.
Can someone help me understand the concept of compatible basis in a better way.