1 point) A company has found that the relationship between theprice p and the demand x for a particular product is givenapproximately by p=1281?0.17x2. The company also knows that thecost of producing the product is given by C(x)=870+398x. Find P(x),the profit function. P(x) = Now use the profit function to do thefollowing: (A) Find the average of the x values of all local maximaof P. Note: If there are no local maxima, enter -1000. Average of xvalues = (B) Find the average of the x values of all local minimaof P. Note: If there are no local minima, enter -1000. Average of xvalues = (C) Use interval notation to indicate where P(x) isconcave up. Note: Enter 'I' for ?, '-I' for ??, and 'U' for theunion symbol. If you have extra boxes, fill each in with an 'x'.Concave up: (D) Use interval notation to indicate where P(x) isconcave down. Concave down: