A car salesperson earns 30 percent of the profit for each car sold. If a salesperson earns $300 from the sale of a car, what was the profit?