Conservation of energy: Spring

A spring when compressed 40 cm, has 20J of elastic potential energy. We cut the spring in half. We compress one half for 30 cm. How much elastic energy is stored in the half spring?
More Energy Conservation Questions: