A spring is compressed by 0.03m, calculate energy stored in the spring if it's first constant is 300N/M

energy = 1/2 * k * x^2 = 1/2 * 300 N/m * (.03 m)^2 = ? Joules