How do I use an inverse matrix to solve a system of equations?