How can I solve for $X$ in this matrix equation?
$$\begin{bmatrix}-3&-8\\-9&5\end{bmatrix} X + \begin{bmatrix}4&-7\\3&-2\end{bmatrix} = \begin{bmatrix}5&8\\-1&-1\end{bmatrix} X$$
First I tried $AX + B = CX$ but then I don't know how to solve for $X$ because no matter what I do I end up getting rid of the $X$.
Hint: You were on the right track. It's quite analogous to solving linear equations with real variables.
$$AX+B = CX$$ $$CX - AX = B$$ $$(C-A)X = B$$ $$X = (C-A)^{-1}B$$ provided that $C-A$ is invertible.