A town's total allocation for firefighter's wages and benefits in a new budget is $600,000. If wages are calculated at $40,000 per firefighter and benefits at $20,000 per firefighter, write an equation whose solution is the number of firefighters the town can employ if they spend their whole budget. Solve the equation.