Using the inverse of a matrix to solve a 3x3 system of linear equations