simplifying fractions with variables