A block of mass 2M is attached to a massless spring with spring-constant k. This block is connected to two other blocks of masses M and 2M using two massless pulleys and strings. The accelerations of the blocks are and as shown in the figure. The system is released from rest with the spring in its unstretched state. The maximum extension of the spring is . Which of the following option(s) is/are correct?
[g is the acceleration due to gravity. Neglect friction]

Tagged Spring force and spring combinations in dynamics. Machine-assigned, so read it as a strong shortlist rather than a verdict.