$$ X - \begin{pmatrix} 2 & 1 & 1 \\ 0 & 3 & 1 \\ 1 & 0 & 4 \end{pmatrix} X = \begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 1 \end{pmatrix} $$
So I got this equation where I need to solve for $X$. I thought to put the equation in the form of $AX = B$, which in my case would be something like $-AX+X=B$ (Correct me if I'm wrong). I did try to find the inverse of $A$ to have it inverse in both side then turn $AX$ in the LHS to it identity matrix but I don't think thats the right way to do it. Any thought about how to tackle this?


Your equation is of the form $(1\!\!1-A)X=B$ then the solution will be $X=(1\!\!1-A)^{-1}B$.