I need to maximise $P$ under these conditions. First, $$P=N[1.4W-0.31L]\,\text{ and }\,W\le19,\,7\le{L}\le11,\,N\in\{16,17\}.$$ I did this using elemantary methods. In order to maximise $P$, we need to maximise $[1.4W-0.31L]$, and I thought since $W$'s coefficient is positive and $L$'s coefficient is negative, to maximise we need to use maximum $W$ and minimum $L$, so $W=19$ and $L=7$, then we get $24,43$. Since we are looking for $\max\{P\}$, we need maximum $N$, and $N$ can be either $16$ or $17$ so $\max\{P\}=415,31$.
I have solved this question like above. However, my teacher asked me to write an essay and I reached this question and I need to do higher level mathematics like use of derivative. Can you suggest me another solution which involves more complicated mathematics?