A mass m attached to a spring with force constant k oscillates with amplitude A and has total mechanical energy E. The spring is replaced by another of force constant 4k, and the amplitude is adjusted so that the maximum acceleration of the mass remains the same as before. Find the new total mechanical energy in terms of E.