The profit of a company is given by the function P(x) = 50 + 36x - x^2 where x is the amount (in thousands) spent on advertising. Find the amount spent on advertising that will bring in maximum profit. (6 marks)