(a) We use the Rayleigh criteria.
Thus, the angular separation (in radians) of the sources must be at least θR=1.22λ/d, where λ is the wavelength and d is the diameter of the aperture.
For the headlights of this problem,
θR=1.22(550×10−9m)5.0×10−3m=1.34×10−4rad
or 1.3×10−4 rad , in two significant figures
(b) If L is the distance from the headlights to the eye when the headlights are just resolvable and D is the separation of the headlights, then D=LθR, where the small angle approximation is made.
This is valid for θR in radians.
Thus L=DθR=1.4m1.34×10−4rad=1.0×104m=10km