# Elevator and Spring question

An elevator cable breaks when a 920kg elevator is 28 m above a huge spring
(k=2.2 x10^5 N/m) at the bottom of the shaft.
Calculate a) the work done by gravity on the elevator before it hits
the spring b) the speed of the elevator just before striking the spring
and c) the amount of spring compresses
( note that work is done by both the spring and the gravity in this part )

I've calculated part a) and b)
answer for a) is 2.5x10^5 J b) 23m/s

For part C) what i think is

Einitial = Efinal

E(ball touches spring) = E(spring compresses)
1/2mv^2 +mgy + 1/2ky^2 = 1/2mv2^2 + mgy2 + 1/2ky2^2

Apparantly that's the equation in the book, but i have no idea how to do the question

Thanks!!

sc: spring compression
ev: elevator speed
ea: elevator accelleration
sf: total force on elevator

What you need to do is:
Turn travel to force, sf2 = 220000 * sc1
Turn force to accelleration, ea2 = 9.81 + sf2 / 920
Turn accelleration to speed, ev2 = ev1 + ea2 * dt
Turn speed to travel, sc2 = sc1 + ev2 * dt