The sum of two numbers is 10 and their product is 24. What are the numbers?