The order of matrix A is and the order of matrix B is .
Since the number of columns in A is equal to the number of rows in B, AB exists and it is of order .
Also, since the number of columns in B is equal to the number of rows in A, BA exists and it is of order .