Thank you for the opportunity to help you with your question!

AB is undefined. You cannot multiply matrices which does not follow the RC formula. But BA is totally defined in that we can multiply three rows with three columns to get a vector

Please let me know if you need any clarification. I'm always happy to answer your questions.