The two numbers are given such that,
It can be written as,
As is given to be maximum, so substitute the value of y in the function,
Differentiate the function with respect to x,
This gives or .
Differentiate equation (1) with respect to x,
This shows that the point of local maxima is , so,
Therefore, and .