Charges at the vertices of an equilateral triangle of side \(a\):
The total electrostatic potential energy of the system is the sum of the potential energies of all pairs of charges.
\[ U=\frac{1}{4\pi\varepsilon_0} \left( \frac{q_1q_2}{a} +\frac{q_2q_3}{a} +\frac{q_3q_1}{a} \right) \]
Between A and B:
\[ U_{AB} =\frac{1}{4\pi\varepsilon_0} \left(\frac{q(-4q)}{a}\right) = -\frac{4q^2}{4\pi\varepsilon_0a} \]
Between B and C:
\[ U_{BC} =\frac{1}{4\pi\varepsilon_0} \left(\frac{(-4q)(2q)}{a}\right) = -\frac{8q^2}{4\pi\varepsilon_0a} \]
Between C and A:
\[ U_{CA} =\frac{1}{4\pi\varepsilon_0} \left(\frac{(2q)(q)}{a}\right) = \frac{2q^2}{4\pi\varepsilon_0a} \]
Adding the three contributions,
\[ U = \frac{1}{4\pi\varepsilon_0a} \left(-4q^2-8q^2+2q^2\right) \]
\[ U = -\frac{10q^2}{4\pi\varepsilon_0a} \]
To dissociate the system, all the charges are taken to infinity where the potential energy becomes zero.
Hence,
\[ W=U_{\infty}-U_{\text{initial}} \]
\[ W=0-\left(-\frac{10q^2}{4\pi\varepsilon_0a}\right) \]
\[ \boxed{ W=\frac{10q^2}{4\pi\varepsilon_0a} } \]
The work required to dissociate the three-charge system is
\[ \boxed{ W=\frac{10q^2}{4\pi\varepsilon_0a} } \]