Hello
The question here relates to property of real numbers and it's called commutative property of multiplication
commutative property of multiplication states that
x.y = y.x

note: zero property of multiplication was also used in this case since any number multiplied by zero is equal to zero