When multiplying two matrices, A and B, the elements of the rows in A
are multiplied with corresponding elements in columns in B. As a result, the
number of elements in a row of A should equal the number of elements in a column of B;
by extension, the number of columns of A should equal the number of rows of B.
in the figure above, the resulting matrix AB is computed one entry at a time.
The values at the intersections marked with circles are: