There are $3$ elves and $3$ dwarves and $6$ chairs. The elves and dwarves are trying to integrate with each other and will only sit next to someone of the opposite race and not next to their own kind. How many arrangements are there for them to sit together.
So I think I have $1$ solution. Is there a more elegant way to do this?
So there are $6$ chairs. The first person has a choice of $6$, but the last $2$ of his type are restricted in their seating; they can only have $2$ choices, and then 1 choice after that. For example, if an elf sits in seat 1, the second elf can only either sit in seat $3$ or seat $5$, and the last elf can only sit in the remaining seat. Once the dwarfs sit, they only have 3 remaining seats to choose from. So I think the math is:
$6*2*1*3*2*1 = 72$.
Is there a more elegant way to do this? Since the arrangements either look like EDEDED or DEDEDE, can I start from there?