If all 6 letters were different - call them - then there would be arrangements.
But the and are indistinguishable. And they can be arranged among themselves in ways. So our arrangements will contain each of these arrangements as if they were different. And, of course, they're not. So we need to divide by .
And the same goes for and : we need to divide by again, to get rid of the duplication caused by the 's.
So the final answer is that there are different arrangements.
You can generalise this and say that if there are items, with items repeated of the first kind, repeated of the second kind, and so on, the number of different arrangements is: