Final answer:
Each pack of Thin Mints costs $5 and each pack of Samosa costs $6.
Step-by-step explanation:
To solve this problem, we can set up a system of equations. Let's first assign variables to the unknown quantities. Let x represent the cost of a pack of Thin Mints and let y represent the cost of a pack of Samosa. From the given information, we can write the following equations:
5x + 2y = 37 (equation 1)
x + 3y = 23 (equation 2)
To solve this system of equations, we can use the method of substitution or elimination. Let's use substitution. From equation 2, we can express x in terms of y:
x = 23 - 3y
Substituting this expression for x in equation 1, we get:
5(23 - 3y) + 2y = 37
Simplifying this equation, we get:
115 - 15y + 2y = 37
Combining like terms, we get:
-13y = -78
Dividing both sides by -13, we get:
y = 6
Substituting this value of y back into equation 2, we can find the value of x:
x + 3(6) = 23
Simplifying this equation, we get:
x + 18 = 23
Subtracting 18 from both sides, we get:
x = 5
Therefore, each pack of Thin Mints costs $5 and each pack of Samosa costs $6.