Simplifying fractions using the commutative property