A spring is kept compressed by a small trolley of mass 0.5 kg 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=2 ms−1. What potential energy did the spring possess when compressed?