Exact solution of the Marchenko equation relevant to inverse scattering on the line