Answer:
1 hotdog cost $2.25
1 popcorn cost $3.5
Explanation:
Let the price of hotdog be and that of popcorn be p
For the first hour;
15p + 14h = 84 •••• (i)
for the second hour;
18p + 16h = 99 •••••(ii)
so we want to solve these two equations simultaneously
In equation 1,
14h = 84-15p
h = (84-15p)/14
Simply insert this into equation ii
18p + 16(84-15p)/14 = 99
Multiply through by 14
252p + 1344 - 240p = 1386
1386-1344 = 252p-240p
12p = 42
p = 42/12
p = $3.5
to get cost of hotdogs;
h = (84-15p)/14
Substitute p = 3.5
h = (84-52.5)/14
h = 31.5/14
h = 2.25