How to simplify fractions with variables and exponents