Sign In
Introduce variables, then set up and solve a system of equations.
Hot dog: $3.25
Popcorn: $2.25
Soda: $2.50
Let's introduce variables for the price of each snack.
| Description | Variable |
|---|---|
| Price of a hot dog | h |
| Price of a popcorn | p |
| Price of a soda | s |
Let's use these variables and the information in the given table to write an equation system.
| Name | Hot Dogs | Popcorn | Soda | Price |
|---|---|---|---|---|
| Dustin | 1 | 2 | 3 | $15.25 |
| Luis | 2 | 0 | 3 | $14.00 |
| Marci | 1 | 2 | 1 | $10.25 |
1h+ 2p+ 3s=15.25 & (I) 2h+ 0p+ 3s=14.00 & (II) 1h+ 2p+ 1s=10.25 & (III) To find the price of each snack we need to solve this system of equations. Notice that in Equations (I) and (III) the coefficients of h and p are the same. This means that if we take the difference of these two equations, variables h and p will be eliminated. This allows us to find the value of s.
(I): Subtract (III)
Once we have the value of s, we can substitute it into Equations (II) and (III). Notice that Equation (II) only has variables h and s, so substituting s=2.50 into this equation allows us to find h.
(II), (III): s= 2.50
We can now substitute h=3.25 into Equation (III) to find p.
(III): h= 3.25
We found that the price of a hot dog is $3.25, the price of popcorn is $2.25, and the price of a soda is $2.50.