Two springs, each of spring constant k, are attached to a block of mass m as shown in the figure. The block can slide smoothly along a horizontal platform clamped to the opposite walls of the trolley of mass M. If the block is displaced by x cm and released, the period of oscillations is :