A mass of 0.5 kg moving with a speed of 1.5 m/s on a horizontal smooth surface collides with a nearby weightless spring of force constant k = 500 N/m. The maximum compression of the spring would be:
a) 0.1 m
b) 0.2 m
c) 0.3 m
d) 0.4 m