To multiply matrices, the number of columns of the first matrix must equal the number of rows of the second matrix. The solution matrix will have the number of rows of the first matrix and the number of columns of the second matrix. To calculate each element of the solution matrix, multiply the corresponding elements in that row of the first matrix with that column of the second matrix and sum the products.