A block on a spring moves in SHM with amplitude 0.23 m and period 3.8 s. The mass of the block is 2.1 kg. What is the total energy of the system?

Can someone please take me step by step and show me what my answer should be? Thanks!

total energy= 1/2 mass*w^2*A^2

w=2PI/period