I wrote down 3g+5d=50 g stands for gym socks and d stands for dress socks. and the numeral next to them is the cost of each.
I simply substituted numbers that equaled 12 when added and kept guessing till it equaled 50 dollars. I got 3(5)+5(7)=50. 5 Gym socks and 7 dress socks