Consider all the $8$-letter words that can be formed by arranging the letters in $BACHELOR$ in all possible ways. Any two such words are equivalent if those two words maintain the same relative order of the letters $A$, $E$ and $O$. For example, $BACOHELR$ and $CABLROEH$ are equivalent. How many words are there which are equivalent to $BACHELOR\;?$
I just try to find all possible cases with maintaining the order of $A$, $E$ and $O$, but their are lots of cases and I can't find the pattern. That's why I can't calculate all possible cases.
If the title of the problem or tags should be change then please feel free to do it.
There are $8!$ possible permutations if we ignore the restriction on the order. There are $6$ equivalence classes (as there are $6$ ways to order three letter) and each equivalence class contains the same number of permutations (there is an obvious bijection between any two equivalence classes). Thus the answer is $$\frac {8!}6=6720$$