Comparing fractions with the same denominator