Solve the following question given below:
Question: A 3.00-kg block is dropped from rest on a vertical spring whose spring constant is 750 N/m. The block hits the spring, compresses it, and then comes to rest, having fallen through a total vertical distance of 0.45 m.
A- How far is the spring compressed?
Please use as much detail as possible in your answer and use conservation of energy for the above question.