Doubt from electric dipole


Answer is 3

Please share your approach. This is a straightforward problem by simply equating the potentials due to the two dipoles.