Question:
Suppose that a box contains $r$ red balls, $g$ green balls, and $b$ blue balls. Suppose also that balls are drawn from the box one at a time, at random, without replacement. What is the probability that all $r$ red balls will be obtained before any green balls are obtained?
Solution(Partial):
I know this solution for $1$ red, $1$ green and $1$ blue balls:
$$\begin{array}{c|l|c} \color{red}{red} & \color{green}{green} & \color{blue}{blue} \\ \hline \\ \color{blue}{blue} & \color{red}{red} & \color{green}{green} \\ \hline \\ \color{red}{red} & \color{green}{green} & \color{blue}{blue} \\\hline \\ \color{green}{green} & \color{red}{red} & \color{blue}{blue} \\\hline \\\color{green}{green} & \color{blue}{blue} & \color{red}{red} \\\hline \\ \color{blue}{blue} & \color{green}{green} & \color{red}{red} \\ \end{array}$$
This means,that there are $3$ outcomes for this event with the sample space of $6$.So, probability is $\frac{1}{2}$.
But I don't know how to generalize this.
Please help.Thank you.