# How are the dimensions of the product of two matrices determined?

If $A$ is a $m \times n$ matrix and $B$ is a $n \times p$ matrix, then the product $A B$ will be a $n \times p$ matrix.