I have matrix
$$A = \left( \begin{array}{ccc} -1 & 1 & 1 \\ 2 & 3 & -1 \\ -2 & 3 & 3 \end{array} \right)$$
and matrix
$$B = \left( \begin{array}{ccc} -1 & 2 & -1 \\ 1 & 2 & -2 \\ 2 & 1 & -1 \end{array} \right)$$
And I want find a matrix $X$, for which the equation
$$ XA-B=2X$$ holds, but I don't know how to do it.
I tried
Solve[XmatA - matB - 2 X = 0],
but it gives:
Set::write: "Tag Plus in -2\ X+XmatA+{{1,-2,1},{-1,-2,2},{-2,-1,1}} is Protected."
Solve::naqs: 0 is not a quantified system of equations and inequalities.
