That is not correct.
The order of multiplication matters in multiplication expressions.
The correct order should be:
6 x a x b = a x b x 6
c x a x b = a x b x c
So the original expressions you provided:
6 x c x a=a x b x c
a x b x c = c x a x b
Are not equivalent. The order of the factors matters in multiplication.