document.write( "Question 259709: Vendor tells John that two hot dogs and one soda cost ten dollars and three hot dogs and two sodas cost sixteen dollars and fifty cents. How much does each cost? \n" ); document.write( "
Algebra.Com's Answer #191124 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
1.\"2H%2BS=10\"
\n" ); document.write( "2.\"3H%2B2S=16.50\"
\n" ); document.write( "From eq.1,
\n" ); document.write( "\"S=10-2H\"
\n" ); document.write( "Substitute into eq. 2 and solve for H.
\n" ); document.write( "\"3H%2B2S=16.50\"
\n" ); document.write( "\"3H%2B2%2810-2H%29=16.50\"
\n" ); document.write( "\"3H%2B20-4H=16.50\"
\n" ); document.write( "\"-H%2B20=16.50\"
\n" ); document.write( "\"-H=-3.50\"
\n" ); document.write( "\"H=3.50\"
\n" ); document.write( "Then from eq. 1,
\n" ); document.write( "\"S=10-2H\"
\n" ); document.write( "\"S=10-7\"
\n" ); document.write( "\"S=3\"
\n" ); document.write( "Hot dogs are $3.50 and sodas are $3.00.
\n" ); document.write( "
\n" );