In physics, how do I solve questions like this:?

I need to know all the equations needed.

The staples inside a stapler are kept in place by a spring with a relaxed length of .115m. If the spring constant is 51N/m, how much elastic potential energy is stored in the spring when its length is .15m?

Anonymous2015-07-21T13:53:03Z

Ep = k.(x - x○)²/2 = 51*(0,15 - 0,115)^2/2 = 0,0312 J = 31,2 mJ