A block-spring system vibrating on a frictionless, horizontal surface with an amplitude of 6 cm has an energy of 12 J. If the block is replaced by one whose mass is twice the mass of the original block and the amplitude of the motion is again 6 cm , what is the energy of the system?