To answer this question, we can use the concept of the Pigeonhole Principle.
The Pigeonhole Principle states that if you have more pigeons than pigeonholes, then at least one pigeonhole must contain more than one pigeon.
In this case, each color of socks represents a pigeonhole, and the number of socks of each color represents the number of pigeons.
Since we have 24 red socks and 24 blue socks, we have a total of 48 socks in 2 different colors, which means we have 48 "pigeons".
To guarantee that we have at least two socks of the same color, we need to take one more sock than the number of colors. In this case, we have 2 colors (red and blue), so we need to take at least 3 socks.
Therefore, the correct answer is B) 3.