It is given that the sum of two numbers is 24.
Consider that the first number is
Let
Differentiate the function with respect to x,
Put
Differentiate equation (1) with respect to x,
This shows that the function is maxima.
Therefore, the first number x is