document.write( "Question 1009594: Each family in a neighborhood is contributing $20 worth of food to the neighborhood picnic. The Harlin family is bringing 12 packages of buns. The hamburger buns cost $2.00 per package. The hotdog buns cost $1.50 per package. How many packages of each type of bun did they buy? \n" ); document.write( "
Algebra.Com's Answer #625064 by addingup(3677)\"\" \"About 
You can put this solution on YOUR website!
Pack of hamburger buns: x
\n" ); document.write( "Pack of hot dog buns: y
\n" ); document.write( "x+y= 12 Subtract x from both sides:
\n" ); document.write( "y= 12-x We'll use this value for y in the next equation.
\n" ); document.write( "----------------------------------------
\n" ); document.write( "2x+1.5y= 20 Substitute for y:
\n" ); document.write( "2x+1.5(12-x)= 20
\n" ); document.write( "2x+18-1.5x= 20 Add x on left and subtract 18 on both sides:
\n" ); document.write( "0.5x= 2 Divide both sides by 0.5
\n" ); document.write( "x= 4 They are bringing 4 packs of hamburger buns and 12-4= 8 packs of hot dog buns.
\n" ); document.write( "-----------------------------------------------
\n" ); document.write( "Check:
\n" ); document.write( "4*2= 8
\n" ); document.write( "8*1.5= 12
\n" ); document.write( "8+12= $20 We have the correct answer
\n" ); document.write( "
\n" );