To find the work done on the spring we first need to find what the spring constant is. To do this we will use the equation F=-kx.