I have to fill out a 9 player baseball lineup, using only three players.
I have three Player A, three Player B and three Player C.
ie - one lineup might look like AAABBBCCC or AABCABCCB
My question is, what is the math formula for determining how many possible lineups there are.
And secondly, what is an easy way to list all these lineups?