${\displaystyle B=B\cdot E_{n}=B(M\cdot A)=(BM)\cdot A=E_{n}\cdot A=A}$
${\displaystyle \Rightarrow A=B}$ and M is invertible