At. least one green dye can be selected out of 5 green dyes in 25 - 1, i.e. in 31 ways. Similarly at least one blue dye can be selected out of 4 in 24 - 1 in 15 ways. For red dyes there is no restriction; you may include it or not include it. Thus there are two ways of disposing of each of red dye. Thus the total number of selection of red dye is 23 = 8
. Hence the required number of ways 31 x 15 x 8 = 3720.