A block of mass m welded with a light spring of stiffness k is in equilibrium on an smooth inclined plane with angle of inclination θ. If a variable external force is applied slowly till the spring comes to its relaxed position, find the work done by spring by spring force.

