The system shown in the figure is released from rest with the mass 2 kg in contact with the ground. The pulley and spring are massless, and friction is absent everywhere. Then, find the speed of the 5 kg block when the 2 kg block leaves contact with the ground (force constant of the spring k=40 Nm−1 and g=10 ms−2)