My process was long but I hope it is a bit more easier to understand. First I found the various distinct combinations as such -
- - Note abbreviations --
-> 3 Green Marbles = 3G
-> 2 Red Marbles = 2G
-> 5 Distinct Marbles = 5D
Combinations -
1) No of ways of selecting 5, when 5 selected from 5D = 1 way
2) Lets consider situations when 4 are selected from the distinct colored
(4D+1G) and (4D+1R) = 5C4 x 2 = 10 ways
3) No of ways of selecting 5, when 3 selected from D group
(3D+2G) and (3D+2R) and (3D+1G+1R) = 5C3 x 3 = 30 ways
4) No of ways of selecting 5, when 2 selected from D group
(2D+3G) and (2D+2G+1R) and (2D+1G+2R) = 5C2 x 3 = 30 ways
5) No of ways of selecting 5, when only 1 selected from D group
(1D+3G+R) and (1D+2G+2R) = 5C1 x 2 = 10 ways
6) No of ways of selecting 5, when 0 selected from D group
Only one way - (3G+2R) = 1 way
Total = 82 ways
Doing it this method is not really good as you can miss some cases, but it helps understand whats happening. For example, lets consider the 5 distinct colours are Violet, Indigo, Blue, Yellow, Orange and White i.e. {V,I,B,Y,O,W}
So in point 2 described above - each 4D combination can have the last marble as G or R, simply put
a single combination of 4D (such as V,I,B,Y) has 2 ways to be picked either with Green or Red = {V,I,B,Y,R} or {V,I,B,Y,G}. Hence in this case, each 4D combination is multiplied by 2.
Similarly in point 3, for a 3D combination, the last 2 marbles can be picked in 3 ways, i.e for a single 3D combination the following combinations exist -
{V,I,B,G,G}
{V,I,B,G,R}
{V,I,B,R,R} = 3 ways for {V,I,B} to be completed. Hence we multiply each 3D combination by 3.
and so on...