a spring of spring constant k is attached to a block of mass m. the spring moves the block through a displacement x. how can you calculate how much work the spring does on the block?