Final answer:
To find the cost of the shorts, set up a system of equations using the given information. Solve the system of equations to find the cost of the shorts. The cost of the shorts is $5.
Step-by-step explanation:
To find the cost of the shorts, we can set up a system of equations using the given information. Let's represent the cost of a t-shirt as T and the cost of a pair of shorts as S.
From the first equation, we have 3T + 2S = 31. From the second equation, we have 4T + S = 28.
We can solve this system of equations using substitution or elimination. Solving for T in the second equation gives T = 7. Substituting this value into the first equation gives 3(7) + 2S = 31.
Simplifying the first equation gives 21 + 2S = 31. Subtracting 21 from both sides gives 2S = 10. Dividing both sides by 2 gives S = 5.
So, the cost of the shorts is $5. Therefore, option A, $6, is the correct answer.