spring force constant 52 n m has relaxed length 245 m when

A spring with a force constant of 52 N / m has a relaxed length of 2.45 m. When a mass is attached to the end of the spring and allowed to come to rest, the vertical length of the spring is 3.57 m. Calculate the elastic potential energy in the spring