Simplifying fractions with variables and fractions