You get by applying the commutative property to the first multiplication. Then you get by using the associative property to regroup.