A block of mass 200 gram attached to a spring of stiffness 50 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.