A 0.5-kg ball is loaded into a popgun. The ball is loaded with compressing a spring 0.1 m. The spring is initially not compressed, then, as it is compressed, the force increases up to a maximum of 10 N. The gun is then fired. What is the speed (in m/s) of the ball because it leaves the gun?