Stanton D. answered 03/23/20
Tutor to Pique Your Sciences Interest
Hi Kayla C.,
Not so bad a problem, approached in the correct way of course!
The cart has LOST kinetic energy = gravitational potential energy, in the vertical direction. That's mgh. But it still HAS 21.7 m/s of kinetic energy equivalent, which you have to calculate as (1/2)mv^2. So the INITIAL kinetic energy was the sum of those two quantities (there's no other place for the initial kinetic energy to go, is there!). So figure the initial velocity from that, if you wish. But the kinetic energy is all you really need, since the spring initially had it as (1/2)kx^2, right? So that will give you x (the initial spring compression).
I suspect you really didn't want to be on that cart -- you could figure your initial acceleration, from F=kx and F=ma (neglecting the mass of the spring, of course). I estimate it at about 30 g. That's why you calculate these things, rather than just hopping in and hoping for the best (though you might survive in a neutral bouyancy suit, perhaps)!
-- Cheers, -- Mr. d.