Let $S = \{\theta \in (0, 2\pi) : 7\cos^2\theta - 3\sin^2\theta - 2\cos^2 2\theta = 2\}$. Then, the sum of roots of all the equations $x^2 - 2(\tan^2\theta + \cot^2\theta)x + 6\sin^2\theta = 0\ \theta \in S$, is ______.
Numerical-value question: the answer is a number.
Show answer
The answer is 16.
Key from source paper