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

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