Multiply on the right by the transpose of the matrix on the left side:

![X\begin{bmatrix}1&-1&2\\3&0&1\end{bmatrix}\begin{bmatrix}1&-1&2\\3&0&1\end{bmatrix}^\top=\begin{bmatrix}-5&-1&0\\5&-2&5\end{bmatrix}\begin{bmatrix}1&-1&2\\3&0&1\end{bmatrix}^\top]()
The transpose is just the same matrix with the entries reflected along the main diagonal:

So


Now multiply on the right by the inverse of the matrix on the left side:


The inverse is

So
