Answer:

Step-by-step explanation:
Given
Mass of Elevator is M
maximum acceleration is 5g
Cable breaks at a height of h above spring
Let K be the spring constant
For Elevator




Suppose spring compresses to a distance x
thus


Potential Energy is converted to Elastic Potential Energy
thus




