\
The number of columns in the matrix X equals the number of rows in the matrix Y.
So, matrix product is defined and its dimensions are .
The matrix product XY is defined and matrix XY dimensions are .