Edited Goal A’s comments so that all of them them show on the page correctly.

Stated the smallest amount of socks possible to guarantee a matching pair.
Explained reasoning as to my answer why the amount is the minimum for a guarantee of 3 matching pair of each color.