The total electric potential energy \( U \) of a system of charges is given by the formula:
\[ U = \sum_{iwhere \( k \) is Coulomb's constant, \( q_i \) and \( q_j \) are the charges, and \( r_{ij} \) is the distance between the charges.
For the given system, the charges are \( +2q \), \( -q \), and \( -q \). The distance between any two charges is \( a \). Thus, the potential energy between each pair of charges is:
The total potential energy is the sum of all pairwise potential energies:
\[ U_{\text{total}} = U_{12} + U_{23} + U_{13} = -\frac{2kq^2}{a} + \frac{kq^2}{a} - \frac{2kq^2}{a} = -\frac{3kq^2}{a} \]
Thus, the total electric potential energy of the system is \( U = -\frac{3kq^2}{a} \).