Assume that exactly A’s stand on the last 4 positions (so ). It follows that there are B’s on the last 4 positions and A’s on the middle 4 positions. Also it follows that there are C’s on the middle 4 positions and C’s on the first 4 positions.
So there are ways to place A’s on the last 4 positions. Then there are ways to place the rest A’s on the middle 4 positions. Finally, there are ways to place B’s on the first 4 positions. So if we place A’s on the last 4 positions, A’s on the middle 4 positions and B’s on the first 4 positions, then the rest positions can be filled in the only way –C’s on the first and on the middle 4 positions, B’s on the last 4 positions.
Hence the number of words with A’s on the last 4 positions is equal to
and the total number is
Answer: 346
Comments