There are many ways to find an inverse matrix. One I like
write the matrix and identity matrix next to each other:
[math]\begin{bmatrix}0 & -2 & 2 \\ 3 & 1 & 3 \\ 1 & -3 & 1 \end{bmatrix}\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{bmatrix}[/math].
Now use "row operations" to reduce the matrix to the identity matrix while applying the same row operation to the identity matrix.
Normally the first thing you would do is divide every number in the first row by the leftmost number in that row. But here, that is 0 so instead swap the first and third rows:
[math]\begin{bmatrix}1 & -3 & 1 \\ 3 & 1 & 3 \\ 0 & -2 & 2 \end{bmatrix}\begin{bmatrix}0 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 0\end{bmatrix}[/math]
Now there is already a 1 in the upper left so all we need to do to get the right first column is subtract 3 times the first row from the second row:
[math]\begin{bmatrix}1 & -3 & 1 \\ 0 & 10 & 0 \\ 0 & -2 & 2 \end{bmatrix}\begin{bmatrix}0 & 0 & 1 \\ 0 & 1 & -1 \\ 1 & 0 & 0 \end{bmatrix}[/math]
Divide the second row by 10:
[math]\begin{bmatrix}1 & -3 & 1 \\ 0 & 1 & 0 \\ 0 & -2 & 2 \end{bmatrix}\begin{bmatrix}0 & 0 & 1 \\ 0 & \frac{1}{10} & -\frac{1}{10} \\ 1 & 0 & 0 \end{bmatrix}[/math].
Add 3 times the second row to the first row and add 2 times the second row to the third row:
[math]\begin{bmatrix}1 & 0 & 1 \\ 0 & 1 & 0 \\ 0 & 0 & 2 \end{bmatrix}\begin{bmatrix}0 & \frac{3}{10} & \frac{7}{10} \\ 0 & \frac{1}{10} & -\frac{1}{10} \\ 1 & \frac{2}{10} & \frac{8}{10} \end{bmatrix}[/math]
Divide the third row by 2:
[math]\begin{bmatrix}1 & 0 & 1 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix}0 & \frac{3}{10} & \frac{7}{10} \\ 0 & \frac{1}{10} & -\frac{1}{10} \\ \frac{1}{2} & \frac{1}{10} & \frac{4}{10} \end{bmatrix}[/math].
Finally, subtract the third row from the first row:
[math]\begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix}0 & \frac{3}{10} & \frac{3}{10} \\ 0 & \frac{1}{10} & -\frac{1}{10} \\ \frac{1}{2} & \frac{1}{10} & \frac{4}{10} \end{bmatrix}[/math]
IF I have done everything correctly, [math] \begin{bmatrix}0 & \frac{3}{10} & \frac{3}{10} \\ 0 & \frac{1}{10} & -\frac{1}{10} \\ \frac{1}{2} & \frac{1}{10} & \frac{4}{10} \end{bmatrix}[/math] is the inverse matrix to [math]\begin{bmatrix}0 & -2 & 2 \\ 3 & 1 & 3 \\ 1 & -3 & 1 \end{bmatrix}[/math]