Compute the products AB and BA whichever exists in each of the following cases: