A mechanism for firing a ball in a table-top game is shown in the diagrams. A moving piston of mass 0.1 kg slides freely in a barrel, which is fixed. A spring of natural length 0.15 m and negligible mass is fitted inside the barrel so that before being primed for use the configuration is that shown in the diagram below. You may assume that the force due to the compression of the spring may be modelled by Hooke's Law with a stiffness of 200 Nm-1.
Show that the energy stored in the spring is 0.25 J when it is in the configuration above.
This is the first question i was a able to get this segment
The mechanism is primed for firing by pulling the piston back a distance d,in metres, where d <0.1, as shown in the diagram below.
Show that the spring has been compressed by a distance (d+ 0.05) m and that the work done in priming the mechanism is 10d(l + 10d).
The first part to this question is relatively straightforward but i cant find the solution to work done