let x = candy A
let y = candy B
x + 2y = 781
2x + y = 794
2x + y = 794
-2x -2x
y = 794 - 2x
x + 2 (794 - 2x) = 781 ▪distributive property
x + 1588 - 4x = 781 ▪ combine like terms
-3x + 1588 =781
- 1588 -1588
-3x = - 807
÷ (-3) ÷ (-3)
x = 269
Candy A contains 269 calories
▪ Plug x into one of the original equations
x + 2y = 781
269 + 2y = 781
-269 -269
_____________
2y = 512
÷2 ÷2
_____________
y = 256
Candy B contains 256 calories