Probability of picking something the same

A drawer contains two white socks, three blue socks and two red socks. Two socks are drawn at random – what is the probability that they are the same colour?

You are correct:$$\frac{{2\choose 2}+{3\choose 2}+{2\choose 2}}{{7\choose 2}}=\frac{5}{21}$$