A spring in a toy gun has a spring constant of 9.80 N/m and can be compressed 20.0 cm beyond the equilibrium position. A 1.00 g pellet resting against the spring is propelled forward when the spring is released. Find the velocity with which the pellet leaves the gun.