Two identical springs are attached to two different masses, MA and MB, where MA is greater than MB. The masses lie on a frictionless surface. Both springs are compressed the same distance, d, as shown in the figure. Which of the following statements descibes the energy required to compress spring A and spring B?