A store is having a sale on jelly beans and trail mix. For 5 pounds of jelly beans and 3 pounds of trail mix, the total cost is $17. For 2 pounds of jelly beans and 12 pounds of trail mix, the total cost is $23. Find the cost for each pound of jelly beans and each pound of trail mix.

Respuesta :

Answer: the cost of one pound of Jelly bean is $2.5

the cost of one pound of trail mix is $1.5

Step-by-step explanation:

Let x represent the cost of one pound of Jelly bean.

Let y represent the cost of one pound of trail mix.

For 5 pounds of jelly beans and 3 pounds of trail mix, the total cost is $17. It means that

5x + 3y = 17- - - - - - - - - - -1

For 2 pounds of jelly beans and 12 pounds of trail mix, the total cost is $23. It means that

2x + 12y = 23- - - - - - - - - - - -2

Multiplying equation 1 by 2 and equation 2 by 5, it becomes

10x + 6y = 34

10x + 60y = 115

Subtracting, it becomes

- 54y = - 81

y = - 81/ - 54

y = 1.5

Substituting y = 1.5 into equation 1, it becomes

5x + 3 × 1.5 = 17

5x + 4.5 = 17

5x = 17 - 4.5 = 12.5

x = 12.5/5

x = 2.5