I started with $f(x,y)=20x-x^2+30y-y^2+xy$. I need to find the maximum values for both $x$ and $y$.
I have differentiated it using implicit differentiation and have gotten to an answer of: $$y'=\frac{2x-20-y}{30-2y+x}.$$
I know that I need to set this equation equal to zero, but I don't know how to get to numerical values for $x$ and $y$. Any help would be appreciated!
Look for the critical points of $f(x,y)=20x-x^2+30y-y^2+xy$:
\begin{align} f_x(x,y)&=20-2x+y&f_y(x,y)&=30-2y+x \end{align}
The critical points $(x,y)$ of $f$ occurs when \begin{align} 20-2x+y&=0\\ 30-2y+x&=0\\ \end{align} So \begin{align} 2x-y&=20\\ x-2y&=-30\\ \end{align} Then $$x=\frac{70}{3}\quad\text{ and }\quad y=\frac{80}{3}$$
Next, evaluate the discriminant of $f$ at $(70/3,80/3)$: $$\Delta =f_{xx}(x,y)f_{yy}(x,y)-f_{xy}(x,y)^2$$ If $\Delta >0$ then in the critical point the function reaches a minimum. If $\Delta <0$ then in the critical point the function reaches a maximum.
In order to be sure that the critical point is not a saddle point verify $f_{xx}(x,y)$ and $f_{yy}(x,y)$ do not vanish at $(70/3,80/3)$.