let the mass of the particles be m and v be its velocity. then0.5mv2=k.
in an elastic collision, the k.e. before and after the collision remains the same and is minimum when the two particles are moving with the same speed, during collision.
applying momentum conservation
mv+0=(m+m)V
V=v2
K.E.=0.5×2m×V2,put V=v2= 0.5k (the kinetic energy when both masses are moving with same speed, at this moment k.e. is minimum and p.e. is maximum)