Two equal masses are attached to the two ends of a spring of spring constant k. The masses are pulled out symmetrically to stretch the spring by a length x over its natural length. The work done by the spring on each mass is
(a) 1/2 kx2 (b)-1/2 kx2 (c) 1/4 kx2 (d)-1/4 kx2