Other responses have addressed the issue of where the OP (i.e. original poster) went wrong.
Any approach that I can think of is going to be at least somewhat tedious.
One approach is Inclusion-Exclusion. See this article for an
introduction to Inclusion-Exclusion.
Then, see this answer for an explanation of and justification for the Inclusion-Exclusion formula.
My initial approach will avoid using Inclusion-Exclusion because the alternative (direct) approach will make the answer very easy to understand.
At the end of my answer, I will provide a 2nd hybrid approach that mixes the direct approach with Inclusion- Exclusion.
For $~b,~r ~$ each in $~\{0,1,2,\cdots,9\}~$:
- Let $~p(b,r)~$ denote the probability that there were exactly $~b~$ blue cards drawn out of the $~12~$ and exactly $~r~$ red cards drawn out of the $~12.$
Then, for all ordered pairs $~(b,r),~$ where $~3 \leq (b+r) \leq 12~$ :
$$p(b,r) = \frac{\binom{9}{b} \binom{9}{r} \binom{9}{12 - b - r}}{\binom{27}{12}}.$$
Per the constraints of the problem, one way of calculating the answer is then:
$$\sum_{b=6}^9 ~\left[ ~\sum_{r=1}^{11-b} p(b,r) ~\right]. \tag1 $$
In actual practice, using the formula in (1) above is more tedious than the computation needs to be, because of the use of a double summation.
In my 2nd approach, I will capitalize on the fact that the number of required red and green cards, are $~1~$ each, which is a very small number.
Let $~p(b)~$ denote the probability that exactly $~b~$ blue cards were used, for $~0 \leq b \leq 9.$
Then,
$$p(b) = \frac{\binom{9}{b}\binom{18}{12-b}}{\binom{27}{12}}. \tag2 $$
So, the following computation is $~\color{red}{\text{inaccurate}},~$ because it fails to accommodate the constraint that there must be at least $~1~$ red card, and at least $~1~$ green card.
$$\sum_{b=6}^9 p(b). \tag3 $$
To correct the flaw, I will examine each case of $~b \in \{6,7,8,9\}~$ separately, and for the specific pertinent value of $~b,~$ calculate the probability that there was at least $~1~$ red card and at least $~1~$ green card.
Let $~q(b)~$ denote the probability of having exactly $~b~$ blue cards, where $~b~ \in \{6,7,8,9\} ~$ and having the other $~(12 - b)~$ cards all be red.
Then
$$q(b) = \frac{\binom{9}{b}\binom{9}{12-b}}{\binom{27}{12}}. \tag4 $$
Similarly, by symmetry, $~q(b)~$ is also equal to the probability of having exactly $~b~$ blue cards, where $~b~ \in \{6,7,8,9\} ~$ and having the other $~(12 - b)~$ cards all be green.
Notice that when there are $~b~$ blue cards used, the event that the rest of the cards are all red, and the event that the rest of the cards are all green are disjoint events.
Because of this, I can now compute the final answer as
$$\sum_{p=6}^9 \left[ ~p(b) - 2q(b) ~\right]$$
$$= \sum_{p=6}^9 \left\{ ~\left[ ~\frac{\binom{9}{b}\binom{18}{12-b}}{\binom{27}{12}} ~\right] - \left[ ~2 \times \frac{\binom{9}{b}\binom{9}{12-b}}{\binom{27}{12}} ~\right] ~\right\}$$
$$= \sum_{p=6}^9 ~\left\{ ~\frac{\binom{9}{b}}{\binom{27}{12}} \times \left[\binom{18}{12-b} - 2 \times \binom{9}{12-b} ~\right] ~\right\}.$$