White chocolate costs $2.00 per bar, and dark chocolate cost $3.00 per bar. If you buy 15 bars of chocolate for $34 dollars, how many of each did you buy

Respuesta :

Number of white chocolate bought is 11 and number of dark chocolate bought is 4

Solution:

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

Number of white chocolate bought + number of dark chocolate bought = 15

w + d = 15 ------ eqn 1

15 bars of chocolate has been bought for $ 34 dollars

So we can frame a equation as:

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

[tex]w \times 2.00+ d \times 3.00 = 34[/tex]

2w + 3d = 34 ---- eqn 2

Let us solve eqn 1 and eqn 2 to find values of "w" and "d"

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

Summarizing the results:

number of white chocolate bought = 11

number of dark chocolate bought = 4