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:
[tex]6x+4y=24[/tex]Reduce the equation to get:
[tex]3x+2y=12\ldots(i)[/tex]It is also given that the price of hot dogs and drinks is same for each meal.
[tex]x=y[/tex]Therefore from (i) it follows:
[tex]\begin{gathered} 5x=12 \\ x=2.4 \end{gathered}[/tex]Hence the cost are:
2.4$ per hotdog.
2.4$ per drink.