Simplifying fractions and exponents