"different groups" usually means a combination.
I'd also like to point out, most scientific calculator has an [ ₙCᵣ ] button for Combinations as well as [ ₙPᵣ ] for Permutations.
9.4m questions
12.2m answers