Answer:
2c + 12 = 20. Simplified to 2c = 8
Explanation:
We can start with a Template
Y = Xc + C
Y being the total
X being candy price
c bring candy boxes, as stated
C being ticket price
Plugging those in we get
20 = 2c + 12
Since you bought the ticket with your $20, we can subtract the ticket price from both sides, giving you
8 = 2c or 2c = 8