Retrieve (2,3) from product of matrices A and B