Final answer:
The cost of a small bag is approximately $6.67 and the cost of a large bag is approximately $8.44.
Step-by-step explanation:
Let's assign variables to represent the cost of a small bag and a large bag.
Let's say the cost of a small bag is x and the cost of a large bag is y.
According to the given information, we can set up two equations:
Cody bought 4 small bags and 2 large bags for a total cost of $52:
4x + 2y = 52
Katie bought 1 large bag and 3 small bags for a total cost of $32:
x + 3y = 32
To solve these equations, we can use the substitution or elimination method. Let's solve it using the elimination method:
- Multiply the first equation by 3 and the second equation by 4 to make the coefficients of y the same:
- 12x + 6y = 156
- 4x + 12y = 128
- Subtract the second equation from the first to eliminate y:
- 12x + 6y - (4x + 12y) = 156 - 128
- 8x - 6y = 28
- Combine like terms:
- 8x - 6y = 28
- Add this equation to the second equation (x + 3y = 32) to solve for x:
- 8x - 6y + (x + 3y) = 28 + 32
- 9x = 60
- Divide both sides by 9 to find the value of x:
- x = 6.67
- Substitute the value of x into x + 3y = 32 to solve for y:
- 6.67 + 3y = 32
- 3y = 25.33
- y = 8.44
Therefore, the cost of a small bag is approximately $6.67 and the cost of a large bag is approximately $8.44.