document.write( "Question 179908: A group of people purchased 8 hotdogs and 5 soft drinks at a cost of $16.00. A second group purchased 13 hotdogs and 6 soft drinks for a cost of $23.45. What is the cost of a single hotdog and a single soft drink?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #134812 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
Let H be the cost of the hot dog, D be the cost of a soft drink.
\n" ); document.write( "1.\"8H%2B5D=16\"
\n" ); document.write( "2.\"13H%2B6D=23.45\"
\n" ); document.write( "We can use eq. 1 to get H in terms of D.
\n" ); document.write( "1.\"8H%2B5D=16\"
\n" ); document.write( "\"8H=16-5D\"
\n" ); document.write( "\"H=2-%285%2F8%29D\"
\n" ); document.write( "Now substitute this expression into eq. 2 and solve for D.
\n" ); document.write( "2.\"13H%2B6D=23.45\"
\n" ); document.write( "\"13%282-%285%2F8%29D%29%2B6D=23.45\"
\n" ); document.write( "\"26-%2865%2F8%29D%2B6D=23.45\"
\n" ); document.write( "\"-%2865%2F8%29D%2B%2848%2F8%29D=23.45-26\"
\n" ); document.write( "\"-%2817%2F8%29D=-2.55\"
\n" ); document.write( "\"D=%282.55%29%288%2F17%29\"
\n" ); document.write( "\"D=1.2\"
\n" ); document.write( "Now that you have D, go to either eq. 1 or 2 and solve for H.
\n" ); document.write( "\"H=2-%285%2F8%29D\"
\n" ); document.write( "\"H=2-%285%2F8%29%281.2%29\"
\n" ); document.write( "\"H=2-0.75\"
\n" ); document.write( "\"H=1.25\"
\n" ); document.write( "Hot dogs cost $1.25, soft drinks cost $1.20.
\n" ); document.write( "
\n" ); document.write( "
\n" );