Let d = the number of drinks sold
Let h = the number of hot dogs sold
the total number of items sold = the number of drinks sold + the number of hot dogs sold = d + h = 84
The total amount of money made equals the money made selling drinks plus the money made selling hot dogs = $285
The money made selling drinks = the cost of a drink times the number of drinks sold = $3d
The money made selling hot dogs = the cost of a hot dog times the number of hot dogs sold = $4h
The total amount of money made = $3d + $4h = $285
This gives us 2 equations and two unknowns
d + h = 84
and
3d + 4h = 285
Solving by substitution:
- Solve the first equation for d or h
d + h = 84
d = 84 - h
- Substitute into the second equation
3d + 4h = 285
3(84 - h) + 4h = 285
- Solve for one variable.
3(84) - 3h + 4h = 285
252 + h = 285
h = 285 -252 = 33
- Substitute the solution back into the first equation to solve for the 2nd variable
d + h = 84
d + 33 = 84
d = 84-33 = 51
- Check your answer by substituting the solution into the 2nd equation
3d + 4h = 285
3(51) + 4(33) = 153 + 132 = 285
- Answer the question
They sold 51 drinks and 33 hot dogs.