Energy conservation: Total gravitational potential energy is converted into spring potential energy at maximum compression.
\[
mg(h + x) = \frac{1}{2} k x^2
\]
Given: \( m = 1 \, \text{kg}, h = 1 \, \text{m}, k = 15 \, \text{Nm}^{-1}, g = 10 \)
\[
10(1 + x) = \frac{15}{2} x^2 \Rightarrow 20(1 + x) = 15x^2 \Rightarrow 20 + 20x = 15x^2
\Rightarrow 15x^2 - 20x - 20 = 0
\]
Solving the quadratic: \( x = 2 \, \text{m} \)