A system comprises of two small spheres with same masses 'm'. Initially the spring is undeformed. The spheres are set in motion in gravity free space at the velocities as shown in the diagram. The maximum elastic potential Energy stored in the system is.
Both spheres will come at rest simultaneously because net momentum of system is zero. And when they comes to rest, their KE converts into elastic potential energy of spring.