THE CLOTHING CONUNDRUM

I am getting ready to go out, but the lights have just blow. In my sock draw I have ten red socks, six green socks, four blue socks, seven yellow socks (I lost one) and twelve purple socks. Apart from having appallingly bad taste in clothes, how many socks must I take out to be mathematically CERTAIN of getting a pair?

--------------------------------- ----------------------------------

Scroll down for the answer

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

--------------------------------- ----------------------------------