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:
For example: the following matrices could be multiplied together because the number of columns in the first matrix (3) matches the number of rows in the second matrix (3).
When multiplying two matrices together, you're going to go row by column, just like the order. You'll multiply the first entry in the row of the first matrix by the first entry in the column of the second matrix, then proceed along, doing this for the second entry, and so on, making a list of numbers. With the above matrix, and the first row/column, it looks like this:
%% 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. %%