Let's use the variable 'x' to represent the number of candy bars bought.
If we bought one magazine for $3 and x candy bars for $2 each, we can write the equation for the total cost:
Now, solving it for x, we have:
So we bought 8 candy bars.
5.3m questions
6.9m answers