Find the number of permutations of word BANANA such that no two A's and N's are adjacent.
My attempt: Let
$A=$ No of permutations in which A is together.
$B=$ No of permutations in which N is together.
We want $A'\cap B'$ which is $U-(A\cup B).$
$A$ is $4!/2!$
$B$ is $5!/3!$
$A\cap B$ is $3!$
By PIE: $A\cup B = A+B-A\cap B = 26$
$U= 6!/3!2!$
Therefore the required answer is $60-26=34$. But the answer is given as $10.$ Where am I wrong?
Treat
NAas one character, then there are $\frac{4!}{2!}=12$ ways of permutingB-A-NA-NA, including $2$ permutations containingNA-Athat you want to omit, hence $10$.