A block is kept on a frictionless horizontal table and connected to a spring attached to a wall. Spring constant 'k' is known but the mass of the block 'm' is unknown. X and Y are the extreme positions of the motion and at O, the spring is in its natural length.