you need to take the partial derivatives of with respect to both and

then in order to find the max equate them to zero, you will then have two equations together with two unknown terms, solve.

you should get two solutions in this case, just test which one will give you the max.