This can be calculated using the combination formula, which is:
$$C(n, k) = \frac{n!}{k!(n-k)!}$$
In our case, there are 21 balls in total (5 white, 10 red, and 6 green), and we want to choose 4 of them. So, we have:
$$C(21, 4) = \frac{21!}{4!(21-4)!} =
Show more…