Matrix multiplication is defined only for certain rectangular matrices A and B. The matrix product AB is defined only if the number of columns in A is equal to the number of rows in B. Assuming this condition is met, the product AB is defined, but the product BA may not be.
h6ss and SteamKing,
Please hold off further comments until I can ascertain whether this is a homework question. If it is, it was posted in the wrong section with no efforts shown.