help pls

How much energy W is needed to compress a spring from 15 cm to 10 cm if the constant of the spring is 150 N / m?

W = 1/2 kx^2