The equation for kinetic energy of shm system is given by;
KE=0.5mw²(A²-x²)
where m is the mass of the object
w² is the angular frequency
A is the amplitude
and x is the positive
The equation for the potential energy is given by;
PE=0.5mw²x²
Solve KE=2PE and you get ur answer