document.write( "Question 424101: A hamburger and a glass of soda cost $2.10. Two hamburgers and 3 sodas cost $5.15. Find the cost of each. \n" ); document.write( "
Algebra.Com's Answer #295747 by Gersid(33)\"\" \"About 
You can put this solution on YOUR website!
Let H = number of hamburgers and S = number of sodas.
\n" ); document.write( "1) H+S = $2.10 \"A hamburger and a glass of soda cost $2.10.\"
\n" ); document.write( "2) 2H+3S = $5.15 \"Two hamburgers and 3 sodas cost $5.15.\"
\n" ); document.write( "Solve equation 1) for H and substitute this into equation 2).
\n" ); document.write( "1a) H = $2.10-S
\n" ); document.write( "2a) 2($2.10-S)+3S = $5.15 Simplify and solve for S.
\n" ); document.write( "2b) $4.20-2S+3S = $5.15 Combine the S terms and then subtract $4.20 from both sides.
\n" ); document.write( "2c) S = $0.95 One glass of soda costs $0.95
\n" ); document.write( "From 1a):
\n" ); document.write( "H = $2.10-S
\n" ); document.write( "H = $2.10-$0.95
\n" ); document.write( "H = $1.15 One hamburger costs $1.15
\n" ); document.write( "
\n" ); document.write( "
\n" );