Let the cost of 1 hotdog be x and 1 drink be y.
It is given that you can get 6 hotdogs and 4 drinks for $24.00 so it follows:

Reduce the equation to get:

It is also given that the price of hot dogs and drinks is same for each meal.

Therefore from (i) it follows:

Hence the cost are:
2.4$ per hotdog.
2.4$ per drink.