Answer: 108
Step-by-step explanation: Let the total number of sweets be x
Therefore, Anna - (x/3)+8
After Anna, remaining amount is x - ((x/3)+8) = 2x/3 + 8
Betty took (2x/3 + 8)/2 + 18 = x/3 + 22
Remaining = x - ((x/3)+8) - (x/3 + 22) = x/3 -30
Candy took the rest which is 6 i.e.
x/3 - 30 = 6
x/3 = 36
x = 108