Solution (source code)

= Solution

Choose the flavor orientation in which each electric $\widetilde\Phi$ is a fundamental of $SU(p)$. Its $N$ color components then give
$$
\mathcal A^{\rm electric}_{SU(p)^3}=N.
$$
In the magnetic theory, the eight Spin(8) components of $q$ transform in the antifundamental and contribute $-8$. The singlet $M$ transforms in the symmetric representation of $SU(p)$, whose <cubic anomaly coefficient> is $p+4$, while $t$ and $U$ are flavor singlets. Therefore
$$
\mathcal A^{\rm magnetic}_{SU(p)^3}=-8+(p+4)=p-4=N,
$$
where $p=N+4$ was used. The two $SU(p)^3$ <'t Hooft anomalies> match, as required by <Seiberg duality>.