[Solution by Dr. Abubacker] $A$: $|\sin x\cos x|=\left(\frac2\pi\right)^2\Rightarrow|\sin2x|=\frac8{\pi^2}<1$, which has $4$ solutions for $2x\in(0,2\pi)$, so $n(A)=4$ (roots near $0.47,1.10,2.04,2.67$). $B$: put $t=\sqrt x$. For $t\ge2$: $t^2-7t+12=0\Rightarrow t=3,4$. For $t<2$: $t^2-t=0\Rightarrow t=0,1$. So $x\in\{0,1,9,16\}$, $n(B)=4$. The sets are disjoint (no root of $A$ equals $1$), so $n(A\cup B)=8$. Answer (2).