A 6000 seat theater has tickets for sale at $24 and $40. How many tickets should be sold at each price for a sellout performance to generate a total revenue of $188,800?

Let x be the number of $24 tickets, and y be the number of $40 tickets. We have: