document.write( "Question 589896: every boy had 5 hotdogs and 3 sodas. every girl had 3 hotdogs and 2 sodas. together, the children ate 74 hotdogs and 46 sodas. how many children were there? \n" ); document.write( "
Algebra.Com's Answer #374971 by stanbon(75887)\"\" \"About 
You can put this solution on YOUR website!
every boy had 5 hotdogs and 3 sodas. every girl had 3 hotdogs and 2 sodas. together, the children ate 74 hotdogs and 46 sodas. how many children were there?
\n" ); document.write( "---
\n" ); document.write( "Equations:
\n" ); document.write( "hotdog Eq: 5b + 3g = 74
\n" ); document.write( "soda Eq: 3b + 2g = 46
\n" ); document.write( "-----------------------
\n" ); document.write( "Multiply thru 1st by 2
\n" ); document.write( "Multiply thru 2nd by 3
\n" ); document.write( "----------------------------
\n" ); document.write( "10b + 6g = 148
\n" ); document.write( " 9b + 6g = 138
\n" ); document.write( "-------------------
\n" ); document.write( "Subtract and solve for \"b\":
\n" ); document.write( "b = 10 (# of boys)
\n" ); document.write( "------
\n" ); document.write( "Solve for \"g\":
\n" ); document.write( "3b + 2g = 46
\n" ); document.write( "3*10 + 2g = 46
\n" ); document.write( "2g = 16
\n" ); document.write( "g = 8 (# of girls)
\n" ); document.write( "----
\n" ); document.write( "b + g = 10+8 = 18 (# of children)
\n" ); document.write( "==================================
\n" ); document.write( "Cheers,
\n" ); document.write( "Stan H.
\n" ); document.write( "============
\n" ); document.write( "
\n" );