In planning a restaurant, it is estimated that a profit of $6 per seat will be made if the number of seats is no more than 50, inclusive. On the other hand, the profit on each seat will decrease by 10 cents for each seat above 50.

a) Find the number of seats that will produce the maximum profit.

Okay.. I know HOW to do it, I just don't know how to set up the equation. Help?

Is it like this?

P=6x-0.1(50+x)

I know Profit = Revenue - Cost, but do we need to use that here?