The manager of Wacky Widgets wants to figure out how much money the store made after expenses. Each widget sells for $50, and he knows that selling 250 widgets gives them a profit of $5000. Write an equation that can be used to calculate the profit (P) when they sell any given number of widgets (w).