To write a system of equations as a matrix, you use the coefficients of each term. The solutions for each equation might be written with a bar separating:
To get answers, go through each entry in the second matrix, entry by entry, and multiply by every item in the matching row of the first one, then add all of those together.