Number of white chocolate bought is 11 and number of dark chocolate bought is 4
<h3><u>Solution:</u></h3>
Given that White chocolate costs $2.00 per bar, and dark chocolate cost $3.00 per bar
Cost of one bar of white chocolate = $ 2.00
Cost of one bar of dark chocolate = $ 3.00
Let "w" be the number of white chocolate bought
Let "d" be the number of dark chocolate bought
you buy 15 bars of chocolate for $34 dollars
<em>Number of white chocolate bought + number of dark chocolate bought = 15</em>
w + d = 15 ------ eqn 1
15 bars of chocolate has been bought for $ 34 dollars
<em><u>So we can frame a equation as:</u></em>
Number of white chocolate bought x Cost of one bar of white chocolate + number of dark chocolate bought x Cost of one bar of dark chocolate = 34
2w + 3d = 34 ---- eqn 2
<em><u>Let us solve eqn 1 and eqn 2 to find values of "w" and "d"</u></em>
From eqn 1,
d = 15 - w --- eqn 3
Substitute eqn 3 in eqn 2
2w + 3(15 - w) = 34
2w + 45 - 3w = 34
-w = 34 - 45
w = 11
From eqn 3,
d = 15 - w = 15 - 11 = 4
d = 4
<h3><em><u>
Summarizing the results:</u></em></h3>
number of white chocolate bought = 11
number of dark chocolate bought = 4