A 220 g block is attached to a horizontal spring and executes simple harmonic motion with a period of 0.150 s. If the total energy of the system is 1.50 J, find the following(a) the force constant of the spring(b) the amplitude of the motion.