Given:
James bought 22 candy bars for $137.
If the king size candy bars cost $8 and a regular size candy bar cost $5.
To find:
The system of equation and solution of it.
Solution:
Let x be the number of king size candy and y be the number of regular size candy.
Quantity:
...(i)
Cost :
...(ii)
Multiply the equation (i) by 5.
...(iii)
Subtract (iii) from (ii).
![8x+5y-5x-5y=137-110](https://img.qammunity.org/2021/formulas/mathematics/high-school/n9wnzsfnnygaawunpr8i7fu193aeydaqvt.png)
![3x=27](https://img.qammunity.org/2021/formulas/mathematics/high-school/eg1ow1rqs3adv5zzbbyt3uoi4dgzedtm7p.png)
![x=9](https://img.qammunity.org/2021/formulas/mathematics/middle-school/q77jblsm8n3ck1b6c3jt9z2pfjukh5bxl9.png)
Put x=9 in (i).
![9+y=22](https://img.qammunity.org/2021/formulas/mathematics/high-school/v76o3wfp6b2t49polp9oyp7g68gdx348db.png)
![y=22-9](https://img.qammunity.org/2021/formulas/mathematics/high-school/y6gr0x1pwq7cddwjuj9yu8x2oxptrxpvym.png)
![y=13](https://img.qammunity.org/2021/formulas/mathematics/high-school/5u4hxdb9tl6zy02yuw8llicgyc284hos9t.png)
Therefore, number of king size candy is 9 and number of regular size candy is 13.