document.write( "Question 1057808: You spend $27 on 7 bags of candy to throw at a parade. The bags cost either $5 or $3. How many bags of each amount did you purchase? \n" ); document.write( "
Algebra.Com's Answer #672791 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
\"+27%2F5+=+5+\" with \"+2+\" remaining
\n" ); document.write( "-----------------------------------
\n" ); document.write( "\"+5%2A4+=+20+\" and \"+20+%2B+7+=+27+\"
\n" ); document.write( "No combinations of 3 and 5 give me \"+7+\"
\n" ); document.write( "----------------------------------------
\n" ); document.write( "\"+5%2A3+=+15+\" and \"+15+%2B+12+=+27+\"
\n" ); document.write( "\"+4%2A3+=+12+\", so this will work
\n" ); document.write( "----------------------------------------
\n" ); document.write( "I bought 3 of the $5 bags
\n" ); document.write( "and 4 of the $3 bags
\n" ); document.write( "and this is 7 bags
\n" ); document.write( "-----------------------------
\n" ); document.write( "Also, you can say:
\n" ); document.write( "Let \"+a+\" = number of $5 bags
\n" ); document.write( "Let \"+b+\" = number of $3 bags
\n" ); document.write( "--------------------------------
\n" ); document.write( "(1) \"+a+%2B+b+=+7+\"
\n" ); document.write( "(2) \"+5a+%2B+3b+=+27+\"
\n" ); document.write( "-----------------------
\n" ); document.write( "Multiply both sides of (1) by \"+3+\"
\n" ); document.write( "and subtract (1) from (2)
\n" ); document.write( "(2) \"+5a+%2B+3b+=+27+\"
\n" ); document.write( "(1) \"+-3a+-+3b+=+-21+\"
\n" ); document.write( "------------------------
\n" ); document.write( "\"+2a+=+6+\"
\n" ); document.write( "\"+a+=+3+\"
\n" ); document.write( "and
\n" ); document.write( "(1) \"+a+%2B+b+=+7+\"
\n" ); document.write( "(1) \"+3+%2B+b+=+7+\"
\n" ); document.write( "(1) \"+b+=+4+\"
\n" ); document.write( "--------------------
\n" ); document.write( "Again, this says
\n" ); document.write( "3 of the $5 bags and
\n" ); document.write( "4 of the $3 bags
\n" ); document.write( "totaling 7 bags\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );