Draw the FBD. Let the length of the thread be L and the separation between the masses be x. Also assume the angle made by the string to the vertical to be
. Then
equations of motion
T-mgcos
-(kq2/x2)sin
=man
-mgsin
+(kq2/x2)cos
= mat
where an and at are the normal and tangential acceleration components. Now at the moment of release v=0, so an = (v2/R) = 0
Also note that I have taken positive tangential direction away from the other charge.
So net force alon the string, man = 0
Net force perpendicular to the string, mat = -mgsin
+(kq2/x2)cos
Substitute the values, the trigonometric ratios can be found from the diagram
You can find the tension from the first equaion.
At the initial moment a = at = -gsin
+(kq2/mx2)cos