Answer:

Step-by-step explanation:
Let assume that one end of the spring is attached to the ground. The speed of the metal block when hits the relaxed vertical spring is:


The maximum compression of the spring is calculated by using the Principle of Energy Conservation:

After some algebraic handling, a second-order polynomial is formed:


The roots of the polynomial are, respectively:


The first root is the only solution that is physically reasonable. Then, the elongation of the spring is:

The maximum height that the block reaches after rebound is:

