find the work done by the spring.