For instance, suppose that mass m1 with initial velocity v1 collides elastically with mass m2 with initial velocity v2.
To switch to the center of mass frame of reference, subtract vcm from each velocity. So, in the center of mass frame, the initial velocity of m1 is v1 - vcm, and the initial velocity of m2 is v2 - vcm.
Since the collision will be symmetric with respect to the center of mass, the velocity of m1 after the collision will be -(v1 - vcm) = vcm - v1 in the center of mass frame, and the velocity of m2 after the collision will be -(v2 - vcm) = vcm - v2.
To switch back to the Earth frame of reference, add vcm to each velocity. The velocity of m1 in the Earth frame will be 2vcm - v1 after the collision, and the velocity of m2 will be 2vcm - v2.
In summary, if an object has a velocity v before a one-dimensional elastic collision, it will have a velocity 2vcm - v after the collision. Simple, huh?