Let's answer this in a straightforward way:
The Electric field due to a point charge at a point with distance r relative to the point charge is:

For E1 we have is:

For E2=E1 we have:

We the get the following equation:

Because

we get from the above expression for q2:
