Answer:
 second bal charge is q₂ = 5 10⁻⁶ C
Step-by-step explanation:
 With this problem we must use Newton's second law and Coulomb's equation for electrostatic repulsion, the two balls have the same charge sign 
 F = k q₁ q₂ / r² 
 
Newton's second law, where the acceleration is zero, system in equilibrium 
X axis 
 F -Tx = 0 
Axis y 
 Ty -W = 0 
We look for the components of stress with trigonometry 
 sin θ = Tx / T 
 Tx = T sin θ 
 Cos θ = Ty / T 
 Ty = T cos θ 
 
We substitute and calculate 
 F = T sin θ 
 mg = T cos θ 
 T = mg / cos θ 
 F = mg sin θ / cos θ 
 F = mg tan θ 
Let's use Coulomb's law 
 K q₁ q₂ / r² = mg tan θ 
We have q₁ = 3 nC = 3 10⁻⁹ C, calculate q2 
 q₂ = mg tan θ (r² / k q₁) 
 q₂ = mg r² tan θ / k q₁
 
 q₂ = 30 10⁻³ 9.8 (4 10⁻²)² tan 16 / (8.99 10⁹9 3 10⁻⁹) 
 q₂ = 1.35 10⁻⁴ / 26.97 
 q₂ = 5 10⁻⁶ C