With only P and MC given how do you determine the marginal revenue function calculate its profitmaximizing

Question

With only P and MC given how do you determine the marginal revenue function, calculate its profit-maximizing

quantity, its profit-maximizing price, total Consumer Surplus, and total Producer Surplus.

Microeconomics