Using energy conservation, the system's kinetic energy must overcome the increase in electrostatic potential energy as the spheres approach.
Initial state: separation 4R, speed u each.
Final state: touching (separation 2R), speed zero.
Change in potential energy: ΔU=k2RQ2−k4RQ2=k4RQ2.
Initial kinetic energy: KEi=mu2.
Energy equation: mu2=k4RQ2(1−kQ2Gm2).
Therefore, u=4mRkQ2(1−kQ2Gm2).