In an elastic collision

suppose a spring connects two masses which collides, if after collision the spring regains its shape, then it is elastic collision, so, initial KE must be here equal to final KE.

1