Question
Find two numbers whose sum is 24 and whose product is as large as possible.
Solution
Let two numbers be x and 24 - x.
Let P = x(24 - x) = 24x - x2