Matching Socks

Last Question:

A grocery store sells products that are
priced in a certain way.

A daffodil costs 10 cents.
A carrot costs 8 cents.
A peach costs 5 cents.
A zucchini costs 9 cents.
An orange costs 6 cents.

How much does a plum cost?

Answer:

The answer is 4 cents. Each letter of the
food costs 1 cent, except for when the
name of the food has double letters, In this
case each of the double letters is worth
2 cents. For example, daffodil costs 10 cents
or: (d=1)+(a=1)+(f=2)+(f=2)+(o=1)+(d=1)
+(i=1)+(l=1)) = 10.

With no double letters, plum has four
letters worth one cent each. A plum thus
costs 4 cents.

Today’s Question:

You have 10 black and 10 white socks
tucked away in the top drawer of your dresser.
The room is totally dark and the electricity
is temporarily off due to an ice storm.
You would like to get a matching pair of socks.

How many socks will you need to take out of
your dresser drawer before you are guaranteed
to have a matching pair of socks?