Question 1103892
Prices are p and 2p.


Using the variables in your description and the assigned variable p, the soda price,
{{{h*(2p)+s*p=d}}}
Solve this for p.
Most important is to be able to make the equation just shown.


{{{p(2h+s)=d}}}


{{{highlight_green(highlight(highlight(p=d/(2h+s))))}}}



(price for hot dogs and soda were not specified in either dollars or cents; only as price without which denomination.  Result for p is therefore not clear if for cents or dollars per soda).
(d DOLLARS taken in by sales of h and s.  Question was how many CENTS for one soda.)