The three whites:
(30 choose 1) * (29 choose 1) * (28 choose 1) = 30 * 29 * 28
The two reds:
(20 choose 1) * (19 choose 1) = 20 * 19
So, The three whites + two reds = 30 * 29 * 28 + 20 * 19 = 24740
6.0m questions
7.8m answers