
As we can see from geometry, sinθ=2010=21
⇒θ=30∘
Vertical component of tension will balance the weight and the horizontal component will balance the electric force. Therefore,
tanθ=mgqE
⇒tan30∘=2×10−3×10q×2×104
⇒31=q×106
⇒q=31×10−6C=31μC
Hence, x=3.