For equilibrium the electrostatic forces need to balance. For the electrostatic force you can use Coulomb's Law and you can add the force from each charge separately. In the x-direction
Fnet = k q⋅q2/r2 + k q2⋅q1/(2r)2 = 0. Solving for q1 gives q1 = -4 q ≈ -21.6 nC.