A 1784.0 g mass is on a horizontal surface with µk = 0.40, and is in contact with a massless spring with a force constant of 736.0 N/m which is compressed. When the spring is released, it does 1.32 J of work on the mass while returning to its equilibrium position. Calculate the distance the spring was compressed. What is the velocity of the mass as it loses contact with the spring?