Simplifying expressions with variables and fractions