The ratio of three numbers is 4 : 1 : 7. The sum of the numbers is 24. What are the three numbers?