The problem asks for the minimum number of socks a person must pick to be absolutely sure of getting at least one pair of black socks. There are 20 black, 22 white, and 24 red socks in the box.
This is a problem that can be solved using the Pigeonhole Principle, focusing on the worst-case scenario.
To find the minimum number required to *guarantee* a pair of black socks, we consider the longest possible sequence of draws that *does not* result in a pair of black socks.
After drawing 47 socks in this worst-case sequence, the person has 1 black sock and 46 non-black socks. The very next sock drawn must guarantee the condition is met.
A canal system is shown in the figure.

Water flows from A to B through two channels. Gates $G_1$ and $G_2$ are operated independently to regulate the flow. Probability of $G_1$ to be open is 10% while that of $G_2$ is 20%. The probability that water will flow from A to B is
Consider a Markov chain having state space $S = \{1,2,3,4\}$ with transition probability matrix $P = (p_{i,j})$ given by
$$\begin{matrix} & \begin{matrix} 1 & \quad 2 & \quad 3 & \quad 4 \end{matrix} \\ \begin{matrix} 1 \\ 2 \\ 3 \\ 4 \end{matrix} & \begin{bmatrix} 1/2 & 0 & 1/2 & 0 \\ 1/4 & 1/4 & 1/4 & 1/4 \\ 1/3 & 0 & 1/3 & 1/3 \\ 1/2 & 0 & 1/2 & 0 \end{bmatrix} \end{matrix}$$
Then