Step-by-step explanation:
Given that,
Distance = 0.6 m
Force = 40 N
(a). We need to calculate the spring constant
Using Hooke's law

Put the value into the formula



We need to calculate the work done


On integrating



(b). We need to calculate the spring constant
Using formula of work done







We need to calculate the work done




Hence, This is the required solution.