Solution
when we compare two fractions like this:

First we need to check if the denominators are equal on that case if a> c then a/b > c/d
If the denominators are different we need to do the following:
ad
cb
And then we can compare ad with cb
If ad > cb then a/b > c/d
If ad < cb then a/b < c/d