For group A, the selection can be 4 boys and 1 girl, or 3 boys and 2 girls. The number of ways to achieve these selections is calculated using combinations:
\[ \text{Ways for group A} = \binom{7}{4} \times \binom{3}{1} + \binom{7}{3} \times \binom{3}{2}. \]
For group B, the remaining individuals are selected as follows:
\[ \text{Ways for group B} = \binom{6}{1} \times \binom{5}{2} + \binom{6}{2} \times \binom{5}{1}. \]
The total number of ways for both groups is found by multiplying the respective ways.
Final Answer: 8750.