Given:
Discount = 25% (James has to pay 75% of the article)
Price of shirt before discount = $24
Amount spent on both shirt and socks after applying discount = $24
Assume the price of socks is x; then:
Shirt + Socks before discount = $(24 + x)
The Price of Socks is = $8