Suppose that a fruit juice manufacturer determines in dollars the cost of producing thousands of bottles of apple juice. Its weekly cost function is given by C(r) = 285 + 0.5x + 0.0112x^2. The demand function for that brand of apple juice is found to be D(p) = 2,000 - 400p, where p is in dollars.
2) Find the revenue function R(x).
b) Find the number of bottles of apple juice that should be produced and sold each week for the company to make the maximum profit.