Joe bought 28 bottles of coke, some regular and some Diet coke regular coke is $1.25 and Diet is $1.50 altogether he spent a total of $37 How many regular bottles of coke did joe buy?

Respuesta :

Answer:

Joe bought 20 bottles of regular coke.

Step-by-step explanation:

Let x represent number of regular coke and y represent number of diet coke.

We have been given that Joe bought 28 bottles of coke, some regular and some Diet coke.

We can represent this information in an equation as:

[tex]x+y=28...(1)[/tex]

[tex]y=28-x...(1)[/tex]

We are also told that regular coke is $1.25 and Diet is $1.50 altogether he spent a total of $37. We can represent this information in an equation as:

[tex]1.25x+1.50y=37...(2)[/tex]

Upon substituting equation (1) in equation (2), we will get:

[tex]1.25x+1.50(28-x)=37[/tex]

[tex]1.25x+42-1.50x=37[/tex]

[tex]-0.25x+42=37[/tex]

[tex]-0.25x+42-42=37-42[/tex]

[tex]-0.25x=-5[/tex]

[tex]x=\frac{-5}{-0.25}[/tex]

[tex]x=20[/tex]

Therefore, Joe bought 20 bottles of regular coke.