As we know that electrostatic force between two charges is given as
here we know that electrostatic repulsion force is balanced by the gravitational force between them
so here force of attraction due to gravitation is given as
here we can assume that both will have equal charge of magnitude "q"
now we have
now we have