First of all we will understand the question!!
The question is saying that you are given a function and you have to find the value of x which will give the maximum profit... Lets solve it by finding the extrema using the vertex

- Identify the coefficients a and b of the quadratic function

- Since a<0, the function has the maximum value at x, calculated by substituting a and b into x=-b/2a


- The maximum of the quadratic function is at x=3