$$A=\left[\begin{matrix} 1&2\\ -2&3\\ 1&-1 \end{matrix}\right]{,}\ B=\left[\begin{matrix} 1&-2&-4\\ -1&4&9 \end{matrix}\right]{,}\ b=\left[\begin{matrix} 1\\ 3\\ 5 \end{matrix}\right]$$
$$ BA=I_2$$
Solving the equation $$A x=b.$$ I start by multiplying with the matrix B.
$$ BAx=Bb \\ \left[\begin{matrix} 1&0\\ 0&1 \end{matrix}\right]x=\left[\begin{matrix} 1&-2&-4\\ -1&4&9 \end{matrix}\right]\left[\begin{matrix} 1\\ 3\\ 5 \end{matrix}\right] =\left[\begin{matrix} -25\\ 56 \end{matrix}\right] $$ If $$x=\left[\begin{matrix} x_1\\ x_2 \end{matrix}\right], $$ then $$\left[\begin{matrix} 1&0\\ 0&1 \end{matrix}\right]\left[\begin{matrix} x_1\\ x_2 \end{matrix}\right]=\left[\begin{matrix} -25\\ 56 \end{matrix}\right] \\ \left[\begin{matrix} x_1\\ x_2 \end{matrix}\right]=\left[\begin{matrix} -25\\ 56 \end{matrix}\right]. $$
Solution should be $$ x=\left[\begin{matrix} -25\\ 56 \end{matrix}\right], $$ but it's not, since $$ Ax=\left[\begin{matrix} 1&2\\ -2&3\\ 1&-1 \end{matrix}\right]\left[\begin{matrix} -25\\ 56 \end{matrix}\right]=\left[\begin{matrix} 87\\ 218\\ -81 \end{matrix}\right]\ne b$$ and this equation doesn't have solutions at all. So at what point does this go wrong? Is there some rule I don't know?