At point P, net electric field along y-axis is zero.
So y-components of fields due to q2 and q3 must cancel.
Distance of P from charges:
For q2,
r2=22+42
=20
For q3,
r3=32+42
=5
Electric field magnitude due to a point charge:
E=r2kq
Y-component is
Ey=Esinθ
For q2,
sinθ2=204
So
E2y=20kq2⋅204
For q3,
sinθ3=54
So
E3y=25kq3⋅54
For cancellation:
∣E2y∣=∣E3y∣
20∣q2∣⋅204=25∣q3∣⋅54
Cancel 4:
2020∣q2∣=125∣q3∣
Thus
∣q3∣∣q2∣=1252020
x=5 58
so x=5