A \( 0.5 \, \text{kg} \) block moving at a speed of \( 12 \, \text{m s}^{-1} \) compresses a spring through a distance \( 30 \, \text{cm} \) when its speed is halved. The spring constant of the spring will be ________ \( \text{N m}^{-1} \).