A 400 g ball is suspended vertically from a spring. A physics student stretches the spring a distance of 10.0 cm and releases it. What is the spring constant?

F = mg = kx

so plug in your numbers -- watch the units