54. You have to go from the more colour they have. You have 1 all three coloured, you have 17 which has both blue and green, but the all three coloured has both colours in it too, so it's one plus sixteen. You go around with this logic with the more coloured ones, then you have the one coloured groups. You have 30 green but you had the all three coloured, and two kinds of two coloured (1+9+16+x=30). You go around with this logic on this group, then count (6+4+4+9+16+14+1=54)