Find the total profit, the maximum value of the total profit, and the value of x at which it occurs when the revenue is given by R(x)=240x-x^2 and the cost is given by C(x)=5000+8x.

isn't profit = revenue - cost ?

plug in those values, simplify, then use either of the methods I just showed you in your previous post