When the displacement in SHM is one-half the amplitude xm , what fraction of the total

When the displacement in SHM is one-half the amplitude xm , what fraction of the total energy is
a) kinetic energy and
b) potential energy?
c) At what displacement, in terms of the amplitude, is the energy of the system half kinetic energy and half potential energy?