Let's make it into an equation and solve for the answer
Let n represent one number
n + 24 represents the other number
(n + 24) ÷ n = 5
n + 24 = 5n
24 = 4n
6 = n
The two numbers are 6 and 30
Let's check it:
30 – 6 = 24
30 ÷ 6 = 5
6 and 30 are your answers
Hope that helped!