Let the price of the hot dogs be x and drink be y.
It is given that you can get 6 hotdogsand 2 drinks for $18.00 so it follows:

Simplify to get:

It is also given that you can get 7 hotdogs and 8 drinks for $46.50 so it follows:

Multiply (i) by 8 to get:

Subtract (ii) from (iii) to get:

Substitute x=1.5 in (i) to get:

Hence the cost are:
1.5$ per hotdog.
4.5$ per drink.