Suppose Sam's Shoe Co. makes only one kind of shoe, which sells for $50 a pair. If they sold 500,000 pairs of shoes, and had a total cost of $1,000,000, what was the company's profit?