The profit P (in hundreds of dollars) that a company makes depends on the amount x (in hundreds of dollars) the company spends on advertising according to the model
P = 180 + 80x − 0.5x^2.
What expenditure for advertising yields a maximum profit?