Ans: Let one number be x. Then, the other number is $y=\left( 35-x \right)$
Let $p\left( x \right)={{x}^{2}}{{y}^{5}}$. Then, we have:
$ P\left( x \right)={{x}^{2}}{{\left( 35-x \right)}^{5}} $
$ \therefore {P}'\left( x \right)=2x{{\left( 35-x \right)}^{5}}-5{{x}^{2}}{{\left( 35-x \right)}^{4}} $
$ =x{{\left( 35-x \right)}^{4}}\left[ 2\left( 35-x \right)-5x \right] $
$ =7x{{\left( 35-x \right)}^{4}}\left( 10-x \right) $
$ And, $
$ {P}''\left( x \right)=7{{\left( 35-x \right)}^{4}}\left( 10-x \right)+7x\left[ -{{\left( 35-5 \right)}^{4}}-4{{\left( 35-x \right)}^{3}}\left( 10-x \right) \right] $
$ =7{{\left( 35-x \right)}^{4}}\left( 10-x \right)-7x{{\left( 35-x \right)}^{4}}-28x{{\left( 35-x \right)}^{3}}\left( 10-x \right) $
$ =7{{\left( 35-x \right)}^{3}}\left[ 350-45x+{{x}^{2}}-35x+{{x}^{2}}-40x+4{{x}^{2}} \right] $
$ =7{{\left( 35-x \right)}^{3}}\left( 6{{x}^{2}}-120x+350 \right) $
$ Now,{P}'\left( x \right)=0\Rightarrow x=0,x=35,x=10 $
$ When,x=35,{f}'\left( x \right)=f\left( x \right)=0 $
$ y=35-35=0. $
This makes the product equal to 0.
When $x=0,y=35-0=35$ and the product ${{x}^{2}}{{y}^{5}}$ will be 0.
$x=0$ and $x=35$ cannot be the possible values of x.
When $x=10$ we have:
${P}''\left( x \right)=7{{\left( 35-10 \right)}^{3}}\left( -250 \right)<0$
By second derivative test, P(x) will be the maximum when $x=10$ and
$y=35-10=25$.
Hence, the required numbers are 10 and 25.