Worked example
Fill labelled groups from the people still available
Seven distinct people must form team X of size two, team Y of size two and team Z of size three. The team names matter, but there is no order within a team. Count the assignments.
Choose the two people in X. From the remaining five, choose the two in Y. The remaining three form Z:
The equivalent factorial expression is
Its denominator removes order inside each team. Swapping the entire memberships of X and Y still creates a different named assignment.