document.write( "Question 1019848: the snack bar sells hot dogs for $3 each and bags of popcorn for $2 each. the team mom bought 18 snacks and spent $47. how many bags of popcorn and how many hot dogs did she buy? \n" ); document.write( "
Algebra.Com's Answer #635775 by Cromlix(4381)\"\" \"About 
You can put this solution on YOUR website!
Hi there,
\n" ); document.write( "Make hot dogs = 'x'
\n" ); document.write( "and popcorn = 'y'
\n" ); document.write( "x + y = 18......(1)
\n" ); document.write( "3x + 2y = 47....(2)
\n" ); document.write( "Multiply (1) by 3
\n" ); document.write( "3x + 3y = 54......(1)
\n" ); document.write( "3x + 2y = 47......(2)
\n" ); document.write( "Subtract (2) from (1)
\n" ); document.write( "......y = 7
\n" ); document.write( "Substitute y = 7 into (1)
\n" ); document.write( "x + y = 18......(1)
\n" ); document.write( "x + 7 = 18
\n" ); document.write( "x = 18 - 7
\n" ); document.write( "x = 11
\n" ); document.write( "11 hot dogs and 7 bags of popcorn were bought.
\n" ); document.write( "Hope this helps :-)
\n" ); document.write( "
\n" );