document.write( "Question 395111: a man pays $8 for a hot dog and a soda. The hot dog is $2 more than the soda. How much does each cost? \n" ); document.write( "
Algebra.Com's Answer #280424 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
a man pays $8 for a hot dog and a soda.
\n" ); document.write( "The hot dog is $2 more than the soda.
\n" ); document.write( "How much does each cost?
\n" ); document.write( "---------
\n" ); document.write( "Equations:
\n" ); document.write( "h + s = 8 dollars
\n" ); document.write( "h = s+2
\n" ); document.write( "-----
\n" ); document.write( "Substitute for \"h\" and solve for \"s\":
\n" ); document.write( "s+2 + s = 8
\n" ); document.write( "2s = 6
\n" ); document.write( "s = 3 dollars (price of a soda)
\n" ); document.write( "---
\n" ); document.write( "Solve for \"h\":
\n" ); document.write( "h + s = 8
\n" ); document.write( "h + 3 = 8
\n" ); document.write( "h = 5 dollars (price of a hot dog)
\n" ); document.write( "======================================
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "
\n" );