A popgun uses a spring for which k = 20 N/cm. When cocked, the spring is compressed to 3.0 cm. Determine the height of a 5.0 g projectile fired by the gun

on firing, KE = 1/2 kx^2

at max height, PE = mgh