A block of mass 100 gram attached to a spring of stiffness 25 N/m is lying on a frictionless floor as shown in figure. The block is moved to compress the spring by 8 cm and released. If collision with the wall is elastic, find the time period of oscillations.