Arturo O. answered 12/19/19
Experienced Physics Teacher for Physics Tutoring
Set the initial kinetic energy of the package equal to the sum of the elastic potential energy of the compressed spring and the absolute value of the work done by friction. It is sort of like using energy conservation, but with a friction term correction to account for lost energy.
m = mass of package (given)
v = initial speed of package (given)
k = spring constant (given)
f = magnitude of kinetic frictional force (given)
d = compression distance of spring = ? (same as stopping distance)
mv2/2 = kd2/2 + fd
kd2/2 + fd - mv2/2 = 0
This gives us a quadratic equation in d. Plugging in the values of k, f, m, and v gives
5000d2 + 15d - 16 = 0
d ≅ 0.0551 meters or -0.0581 meters
Assuming the compression distance is positive, d ≅ 0.0551 meters