If you have the same denominator, for example, 48 (6times 8 is 48), you can multiply the numerators 5 by 8 (since 6 is multiplied by 8) and 5 times 6 since 8 is multiplied by 6.
It comes out like 40/48 (5 times 8) and 30 /48(5 times 6)
Therefore, because 40 is greater than 30, 5/6 is greater than 5/8