Suppose a light source is placed at the focal point of the optical system at $A$ which is at the distance $d$ from the left lens. The (virtual) image produced by the left lens must be at the focal point of the right lens at $B$ in order for parallel light rays to leave the right lens. Thus,