Compare fractions with different denominators