Answer: Hot dog = $3.50
Drink = $2.0
Explanation:
Let the cost of a hot dog be x
Let the cost of a drink be y.
From the question above, we can form an equation as:
3x + 4y = 18.50 ....... i
4x + 2y = 18 ......... ii
Multiply equation i by 4
Multiply equation ii by 3
12x + 16y = 74 ...... iv
12x + 6y = 54 ...... v
Subtract v from iv
10y = 20
y = 20/10
y = 2
A drink cost $2
From equation ii
4x + 2y = 18
Recall that y = 2
4x + 2(2) = 18
4x + 4 = 18
4x = 18 - 4
4x = 14
x = 14/4
x = 3.5
A hot dog ost $3.50