Final answer:
Each candy bar costs $3.
Step-by-step explanation:
To find out how much each candy bar costs, we need to subtract the cost of the soft drink from the total amount spent, and then divide the remainder by the number of candy bars purchased.
Cost of soft drink: $3
Total spent: $24
Total amount spent on candy bars: $24 - $3 = $21
Number of candy bars purchased: 7
Cost of each candy bar: $21 ÷ 7 = $3
Therefore, each candy bar costs $3.