An application of the separation method in O18 and Ne20