document.write( "Question 25254: You are buying meat for a cookout. You need to buy 8 packages of meat. A package of hotdogs costs 1.89 and a package of hamburgers costs 5.19. You spend a total of 31.62. How many packages of each kind of meat did you buy? \n" ); document.write( "
Algebra.Com's Answer #13523 by Paul(988)\"\" \"About 
You can put this solution on YOUR website!
Let the pagke of hot dags be x
\n" ); document.write( "Let the pakage of hamburgers be y
\n" ); document.write( "Now they total up tp 8 packages.
\n" ); document.write( "xEliminate the cost
\n" ); document.write( "x+y=8
\n" ); document.write( "y=8-x\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Cost of hotdogs = $1.89
\n" ); document.write( "Cost of hamburgers = $5.19
\n" ); document.write( "1.89x+5.19y=31.62
\n" ); document.write( "1.89x+5.19(8-x)=31.62
\n" ); document.write( "1.89x+41.52-5.19=31.62
\n" ); document.write( "-3.3x=--9.9
\n" ); document.write( "x=3
\n" ); document.write( "y=8-3
\n" ); document.write( "y=5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Hence he bought 3 pakages of hotdogs, abd 5 pakages of hamburgers.
\n" ); document.write( "Paul.
\n" ); document.write( "
\n" );