How many arrangements are possible from a word ABCDDDEEEFFF where at least two Ds must be adjacent and at least two Es must be adjacent.
Number of arrangements where at
at least two Ds are adjacent
$=\dfrac{12!}{3!.3!.3!}-\dfrac{9!}{3!.3!}\times\dbinom{10}{3}$
Number of arrangements where at
at least two Es are adjacent
$=\dfrac{12!}{3!.3!.3!}-\dfrac{9!}{3!.3!}\times\dbinom{10}{3}$
But, unable to apply both the constraints together. please help how we can find the count when (at least two Ds are adjacent) and (at least two Es are adjacent)
Let's replace two of the $D$s with $X$, and two of the $E$s with $Y$. So the arrangements of $ABCXDYEFFF$ are simply $\dfrac{10!}{3!}$.
However we have overcounted slightly, because $XD \equiv DX$ and $YE \equiv EY$. So we need to remove the $\dfrac{9!}{3!}$ cases where each of these is overcounted then add back in the $\dfrac{8!}{3!}$ cases where both are happening and we have removed the overcount twice.
So $$\frac{10!}{3!} - 2\frac{9!}{3!}+ \frac{8!}{3!}= 604800 - 2\cdot 60480 + 6720 = 490560$$