document.write( "Question 672830: Josh was in charge of bringing bags of chips to a homecoming party the doritos cost $1.79 per bag and the cheetos cost $2.01 per bag he bought 15 bags of chips together how many of each type did he buy if he spent a total of $28.17? \n" ); document.write( "
Algebra.Com's Answer #418334 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+a+\" = bags of Doritos bought
\n" ); document.write( "Let \"+b+\" = bags of Cheetos bought
\n" ); document.write( "given:
\n" ); document.write( "(1) \"+a+%2B+b+=+15+\"
\n" ); document.write( "(2) \"+1.79a+%2B+2.01b+=+28.17+\"
\n" ); document.write( "---------------------------
\n" ); document.write( "(2) \"+179a+%2B+201b+=+2817+\"
\n" ); document.write( "Multiply both sides of (1) by \"+179+\"
\n" ); document.write( "and subtract (1) from (2)
\n" ); document.write( "(2) \"+179a+%2B+201b+=+2817+\"
\n" ); document.write( "(1) \"+-179a+-+179b+=+-2685+\"
\n" ); document.write( "\"+22b+=+132+\"
\n" ); document.write( "\"+b+=+6+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+a+%2B+6+=+15+\"
\n" ); document.write( "(1) \"+a+=+9+\"
\n" ); document.write( "9 bags of Doritos were bought
\n" ); document.write( "6 bags of Cheetos were bought
\n" ); document.write( "check:
\n" ); document.write( "(2) \"+1.79%2A9+%2B+2.01%2A6+=+28.17+\"
\n" ); document.write( "(2) \"+16.11+%2B+12.06+=+28.17+\"
\n" ); document.write( "(2) \"+28.17+=+28.17+\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" ); document.write( "
\n" );