Ok, so there are 7 possible patterns. Hey, I've given all but two of them names:

AAAAA -- ATeam group
ABBBB -- Harem group
ABCCC --
ABCDD --
ABBCC -- TwinTwin group
AABBB -- FullHouse group
ABCDE -- Nightmare group