We are given a set of equations and we want to solve them using the matrix inverse. To do so, first, we write the system of equations, which is

Now, we will write the system of equations in a matrix form. That is, we will write a matrix, such that the product of the matrix and a vector will lead to the system of equations. We write it as

so the matrix A would be

Now, we use some help to calculate the inverse of A (the explanation on how to calculate the inverse is beyond the scope of the question). So, we have

so, to solve the problem, we multiply the inverse matrix of A on the right side of both sides of the equation. So we have

so x=1 and y= -5/9