Answer:
Let x represents the price of the T-shirts and y represents the price of a pair of jeans
As per the statement:-
James bought two T-shirts and one pair of jeans at an online store and paid $40, not including taxes, for his purchase.
⇒
.....[1]
It is also given that:
A month later, the same store sold the T-shirts and jeans at a 50% discount from their original prices.
Discount = 50%
Now, the price becomes:
Price of t-shirt =
and
Price of a pair of jeans =

Further:
James bought two T-shirts and five pairs of jeans for $60, not including taxes.
⇒
⇒
.....[2]
Subtract equation [1] from [2] we get;

Divide both sides by 4 we have;
y = $ 20
Substitute this value of y in [1] we have;
2x+20 = 40
Subtract 20 from both sides we have;
2x = 20
Divide both sides by 2 we have;
x =$ 10
Therefore,the price of a T-shirt is $ 10 and the price of a pair of jeans is $ 20