we have
P(x,y)=7x+8y
so
Verify for each ordered pair of the shaded region
so
For (0,35) --------> P=7(0)+8(35)=280
For (10,30) ------> P=7(10)+8(30)=310
For (15,25) ------> P=7(15)+8(25)=305
For (20,15) ------> P=7(20)+8(15)=260
For (20,0) ------> P=140
therefore
(10,30) maximize the profit