Maximum value of a function is understood by differentiating it.
⇒p'(x)=0 i.e 24-36x=0
⇒p''(x)<0 i.e -36<0 implies there is local maxima
So maximum profit is p(2/3) = 49
hope the attachment ..
where is your figure
plzz post full question