I am sorry to post this again, but I am still confused.
Alice has only $24$ hours to study for an exam, and without preparation she will get $200$ points out of $1000$ points on the exam. It is estimated that her exam score will improve by $x(50−x)$ points if she reads her lecture notes for $x$ hours and $y(48−y)$ points if she solves review problems for y hours, but due to fatigue she will lose $(x+y)^2$ points. What is the maximum exam score she can obtain? Round your answer to the nearest integer.
I got $y=23/2$ and $x=25/2$.
When I plugged those back in I got $312.5$, and then I need to add the $200$ points. So my answer would be $512.5$ which would round to $513$. But this is not correct. I asked this question earlier and got $y=23/3$ and $x=26/3$ with it equaling $601$. Can someone explain how they got these and if that is indeed correct?
$P(x,y)=200+x(50-x)+y(48-y)-(x+y)^2$ is the function that you want to extremize subject to $x+y=24$. I would solve for $x$ or $y$ in the constraint equation, plug it into $P$, differentiate, set equal to zero and solve.