If you simplify 24/40:
divide by 4
6/10
divide by 2
3/5
simplify 5/10:
1/5
therefore, 24/40 = 3/5 and 5/10 = 1/5 so 24/40 is 2/5 greater than 5/10