SOLUTION: 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?

Algebra ->  Coordinate Systems and Linear Equations  -> Linear Equations and Systems Word Problems -> SOLUTION: 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?      Log On


   



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?
Answer by josmiceli(19441) About Me  (Show Source):
You can put this solution on YOUR website!
+27%2F5+=+5+ with +2+ remaining
-----------------------------------
+5%2A4+=+20+ and +20+%2B+7+=+27+
No combinations of 3 and 5 give me +7+
----------------------------------------
+5%2A3+=+15+ and +15+%2B+12+=+27+
+4%2A3+=+12+, so this will work
----------------------------------------
I bought 3 of the $5 bags
and 4 of the $3 bags
and this is 7 bags
-----------------------------
Also, you can say:
Let +a+ = number of $5 bags
Let +b+ = number of $3 bags
--------------------------------
(1) +a+%2B+b+=+7+
(2) +5a+%2B+3b+=+27+
-----------------------
Multiply both sides of (1) by +3+
and subtract (1) from (2)
(2) +5a+%2B+3b+=+27+
(1) +-3a+-+3b+=+-21+
------------------------
+2a+=+6+
+a+=+3+
and
(1) +a+%2B+b+=+7+
(1) +3+%2B+b+=+7+
(1) +b+=+4+
--------------------
Again, this says
3 of the $5 bags and
4 of the $3 bags
totaling 7 bags