Since the school budget allows no more than $360 to be spent on balls and bats, we have:
Now, let's call x the number of balls and y the number of bats that can be bought.
• The cost to buy x balls, in dollars, is 6x.
• The cost to buy y bats, in dollars, is 24y.
So, the total cost of balls and bats, in dollars, is 6x + 24y.
Now, we can use this expression in the above inequality to obtain the inequality: