There are a couple of points about this equation. The extension must be in metres, and so if it's in centimetres you'll need to convert it to metres. Secondly, the value of the spring constant depends on the spring.

12