Final answer:
Each shirt costs $8 and each pair of pants costs approximately $11.33.
Step-by-step explanation:
To find the cost of each shirt and each pair of pants, we can set up a system of equations. Let's use the variables 's' for the cost of each shirt and 'p' for the cost of each pair of pants. From the given information, we can write the following equations:
2s + 3p = 50
3s + p = 40
To solve this system of equations, we can use the method of substitution or elimination. Let's use the elimination method:
Multiplying the second equation by 2, we get:
6s + 2p = 80
Now we can subtract the first equation from this new equation:
6s + 2p - (2s + 3p) = 80 - 50
4s - p = 30
We now have a new equation, which we can solve for 's'. Adding the first equation and this new equation, we get:
(2s + 3p) + (4s - p) = 50 + 30
6s + 2p - p = 80
10s = 80
s = 8
Substituting the value of 's' back into the first equation, we can solve for 'p':
2(8) + 3p = 50
16 + 3p = 50
3p = 34
p = 34/3
So, each shirt costs $8 and each pair of pants costs approximately $11.33.