k and 2k respectively are attached to a mass M kept on a frictionless plane as shown in the figure. If the mass M is displaced in the horizontal direction