The sum of a number and twice the second number is 24. Determine the two numbers to maximize their product.