A mass compresses a spring, as illustrated. Which statement explains how the spring’s energy changes as it is compressed by the mass?
- AThe spring gains both gravitational potential energy and elastic potential energy.
- BThe spring gains gravitational potential energy and loses elastic potential energy.
- CThe spring loses both gravitational potential energy and elastic potential energy.
- DThe spring loses gravitational potential energy and gains elastic potential energy.