A 12 kg weather rocket generates a thrust of 240 N. The rocket, pointing upward, is clamped to the top of a vertical spring. The bottom of the spring, whose spring constant is 510 N/m, is anchored to the ground. What is the rocket's speed when the spring has stretched 40 cm?