To multiply matrices, the number of columns in the first matrix must equal the number of rows in the second matrix. The resulting matrix will have the number of rows of the first and the number of columns of the second. For example, a matrix with dimensions axb can be multiplied with a bxc matrix to produce an axc resulting matrix.