row of first matrix must be equal to column of second matrix and column of first matrix must be equal to row of second matrix in order to be multiplied.
row of first matrix must be equal to column of second matrix and column of first matrix must be equal to row of second matrix in order to be multiplied.