You first need to subtract $4 from $28 because you know the cost of the soft drink from the total.
28-4=24. Now, you know she bought 8 candy bars so to find the value of a single candy bar you have to divide 24 by 8. 24/8=3. One candy bar cost $3. Hope that helps!