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