Final answer:
To find the number of $5 and $3 bags of candy purchased for a total of $27, set up two equations and solve the system. You would have bought 3 bags at $5 each and 4 bags at $3 each.
Step-by-step explanation:
You are trying to determine how many bags of candy you purchased at $5 and $3 given that you spent a total of $27 on seven bags. We can start by setting up two equations to represent the situation:
- Let the number of $5 bags be x.
- Let the number of $3 bags be y.
The first equation represents the total number of bags:
The second equation represents the total amount spent:
Now let's solve this system of equations:
- From the first equation, solve for y: y = 7 - x.
- Substitute y = 7 - x into the second equation: 5x + 3(7 - x) = 27.
- Simplify the equation: 5x + 21 - 3x = 27.
- Combine like terms: 2x = 6.
- Divide both sides by 2 to get: x = 3.
- Now, substitute x back into y = 7 - x to get y: y = 7 - 3 = 4.
Therefore, you purchased 3 bags at $5 each and 4 bags at $3 each.