You bought socks for all your friends. Fancy socks cost $15 a pair, and plain socks cost $8 a pair. You have 12 friends, spent exactly $117. How many pairs of each type of sock did you buy? ​