In a physics lab experiment, a spring clamped to the table shoots a 21 g ball horizontally. When the spring is compressed 18 cm, the ball travels horizontally 5.1 m and lands on the floor 1.7 m below the point at which it left the spring. What is the spring constant?