I'm trying to figure out whether a property for a matrix product exist.
Let's say we have 2 sets of matrices: $A$, $B$ and $X$, $Y$ ($A \neq X$) and let's say that their product is the same $AB=XY=C$. If we rearrange the factors, are the new products $BA$ and $YX$ equal?
If there is no such property, then are there any rules when this is true or when it is definitely false?