Santa has lots of mixed up socks in his sack! If he has 6 green socks, 4 gold socks, 8 black socks and 2 red socks, what is the minimum he needs to pull out of his sack to get a matching pair?