Dayaan M. answered 20d
Experienced Math and Computer Science Tutor - Helping Students Excel
8h + 5d = 15.50 (1st equation)
3h + 7d = 13.50 (2nd equation)
where h is the price of one hotdog and d is the price of one drink.
The idea behind the elimination method is to cancel one of the variables so that we are left with only one variable to solve for. Firstly, we can look at the d terms, which are 5d and 7d. Lets multiply the 1st equation by 7 and the 2nd equation by 5 so that both of them have 35d:
7[8h + 5d = 15.50] Multiply 1st equation by 7
5[3h + 7d = 13.50] Multiply 2nd equation by 5
_______________
56h + 35d = 108.50
15h + 35d = 67.50
_______________ Now subtract them so the d cancels
41h = 41.00 Divide by 41 on both sides to solve for h
h = 1.00
Now that we have the value of h, we can substitute it into the 1st equation or the 2nd equation to solve for d. Lets choose the 2nd equation since the numbers are smaller:
3h + 7d = 13.50 Plug in h = 1.00
3(1.00) + 7d = 13.50 Simplify
3 + 7d = 13.50 Subtract 3 on both sides
7d = 10.50 Divide by 7 on both sides to isolate d
d = 1.50
Lastly, we can plug both values back into the original equations to make sure they work:
8(1.00) + 5(1.50) = 8 + 7.50 = 15.50 (matches the 1st equation)
3(1.00) + 7(1.50) = 3 + 10.50 = 13.50 (matches the 2nd equation)
We have solved for both prices.
Hotdog = $1.00; Drink = $1.50