以下のMathの問題の解き方を教えてください.
A donut shop makes and sells donuts makes, and wishes to determine what price to charge for its standard donuts. The higher price they charge, the fewer donuts they will sell, but the money they will make per donut. Market research has found that the price p needed to sell a certain number of donuts per day, x, is p(x)=2-0.01x
(a) If the donut shop sells x donuts at a price p(x) how much mill they make dorm sales in one day? Your answer to this question will have an x in it (in other word, it will be a function of x). This amount of money is called the revenue, and will be denoted by the function R(x).
(b) If the donuts shop has a fixed cost of $500 per day rent and labor and it cost them $0.20 per donut do ingredients, find a formula for the cost per day in terms of x, the number of donuts sold. We will denote this cost function as C(x).
(c) Use the revenue and cost function above to find a formula do the profit function P(x) in terms of x.
(d) Find the value of x which yields the maximum profit per day. Justify your answer algebraically.
(e) Find the price the donut shop should charge to yield maximum profit.