A spring is kept compressed by a small trolley of mass
0.5kg lying on a smooth horizontal surface as shown in the adjacent fig. when the trolley is released. it is found to move at a speed
v=2ms−1. What potential energy did the spring possess when compressed?