Consider two matrices of dimensions, AxB and CxD. Matrix multiplication can only be done if B=C, i.e., number of columns of the first matrix = number of rows of the second matrix. To learn more about Matrices, you can check Class 12 RD Sharma Solutions Chapter 4 material.