We know that:
W=Fs
200J=150N*s
s=200J/150N
s=1,33m
In the first case, the force acting on the spring is the weight of the mass:

This force causes a stretching of

on the spring, so we can use these data to find the spring constant:

In the second case, the first mass is replaced with a second mass, whose weight is

And since we know the spring constant, we can calculate the new elongation of the spring:
M <span>represent mass in kg
</span><span>v represents speed in m/s
</span><span>r represents radius in m
Now, just substitute these into the formula:
</span>

<span>
</span>