Answer:
175 ways
Step-by-step explanation:
Form a partition into 2 or 3 parts and the number of ways.
Pink candies
[1,5](2) , [2,4](2) , [3,3](1) , [1,4](3), [1,2,3](6) , [2,2,2](1)
Green candies
[1,7](2) , [2,6](2) , [3,5](2) , [4,4](1) , [1,1,6](3) , [1,2,5](6) , [1,3,4](6) , ,[2,2,4](3) , [2,3,3](3)
Number of ways will be:
(2+2+1) (2+6+6+3+3) + (3+6+1)(2+2+2+1)
Number of ways =( 5×21) + (10×7) = 175ways