A mass m slides without friction on a 1-dimensional track. The mass is moving from left to right with initial velocity v0. At time t = 0 the mass contacts the end of the spring (at position x = 0). The force exerted by the spring is F(x) = -k x.
(A) Determine the position where the mass will come to rest.
(B) Determine the time when the mass will come to rest.