If the extension of a spring when mass of 8kg is attached, calculate the work done in extending the spring.