simplifying fractions with multiple variables