You bought 15 1 gallon bottles of orange juice and apple juice for school breakfast. The apple juice was on sale for $1.50 per gallon bottle. The orange juice was two dollars per gallon bottle. You spent $26. How many bottles of each type of juice did you buy

Respuesta :

Answer: you bought 7 bottles of orange juice and 8 bottles of apple juice.

Step-by-step explanation:

Let x represent the number of 1-gallon bottles of orange juice that you bought.

Let y represent the number of 1-gallon bottles of apple juice that you bought.

You bought 15 1 gallon bottles of orange juice and apple juice for school breakfast. This means that

x + y = 15

The apple juice was on sale for $1.50 per gallon bottle. The orange juice was two dollars per gallon bottle. You spent $26. This means that

2x + 1.5y = 26 - - - - - - - - - - - - -1

Substituting x = 15 - y into equation 1, it becomes

2(15 - y) + 1.5y = 26

30 - 2y + 1.5y = 26

- 2y + 1.5y = 26 - 30

- 0.5y = - 4

y = - 4/ - 0.5

y = 8

x = 15 - y = 15 - 8

x = 7