Find the greatest common divisor (GCD) of 24 and 40. The factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. The factors of 40 are 1, 2, 4, 5, 8, 10, 20, 40. The GCD is 8.
Divide both the numerator and the denominator by 8: $$\frac{24 \div 8}{40 \div 8} = \frac{3}{5}$$