Statement

The marginal revenue is R(q)=844qq2R'(q)=84-4q-q^{2} (in €). Find the total revenue function R(q)R(q) and the demand function p=R(q)qp=\dfrac{R(q)}{q}.