Final answer:
Devon and his friends bought 4 packets of strawberry wafers and 18 packets of chocolate wafers.
Step-by-step explanation:
Part A: Let x represent the number of packets of strawberry wafers and y represent the number of packets of chocolate wafers. Based on the given information, we can set up the following system of equations:
- x + y = 22 (Equation 1) - since Devon and his friends bought a total of 22 packets of wafers
- 3x + 1y = 30 (Equation 2) - since the cost of strawberry wafers is $3 per packet and the cost of chocolate wafers is $1 per packet
Part B: To solve the system of equations, we can use substitution or elimination. Using elimination, we can multiply Equation 1 by 3 and subtract Equation 2 from it:
(3x + 3y) - (3x + y) = 66 - 30
2y = 36
y = 18
Substituting the value of y back into Equation 1, we get:
x + 18 = 22
x = 4
Therefore, Devon and his friends bought 4 packets of strawberry wafers and 18 packets of chocolate wafers.