Two atoms of hydrogen are located at r1, and r2. Their center of mass is at
r1−r22
r1+r22
r1−r2
r1+r2
rCM=mr1+mr2m+m =r1+r22