NVM I found 2 ways to do it(My dad helped me, we talked about it all through supper.)
The way I used was just countnig, not cpunting the opisite and then subtracting.
Boys:
1.) 3 2 1 = 360
2.) 2 2 2 = 90
Girls:
1.) 1 2 3 = 60
2.) 2 2 2 = 90
(Each number is how many people in each group, and then I used combinintry.)
360 x 60 + 90 x 90 = 29700 ways!
The other way is solving they ways that DON'T work. I'm not going to explain it but I can put a screenshot of their explantion.
- WillBill