Luis bought eight bags of candy at the store for a total price of $21.54. He bought some bags of candy that cost $2.22 each and the rest cost $3.48 each. How many bags of the $3.48 candy did Luis buy?

3 answers

A=2.22
B=3.48

A + B = 8
2.22A x 3.48B = 21.54

solve for B
C means cheap candy bag, E means expensive candy bag.

C*2.22+E*3.48=21.54
C+E=8
I got this far, but how do I solve for B?