Final answer:
Each snack costs $5.
Step-by-step explanation:
To find the cost of each snack, we need to subtract the cost of the drink from the total amount spent. Since they spent $24 and the drink cost $3, the total cost of the snacks is $24 - $3 = $21.
Since they bought 4 snacks of equal price, we can divide the total cost by the number of snacks to find the cost of each snack. Therefore, each snack cost $21 / 4 = $5.