Well, When I first looked at the problem, I thought they were asking for the ML of the unknown p which you could decide pretty easily because you have a binomial random variable by taking the derivated of the RV. but to get the other unknown n, I believe that we follow the same procedure and just solve for n instead of p.