A firm inWhen a competitive market receives $500 in total revenue and has marginal revenue of $10

When a firm in a competitive market receives $500 in total revenue, it has a marginal revenue of $10. What is the average revenue, and how many units were sold?