Find work?

A block of mass 2 kg  attached to a spring lies on a flat surface.    When the block is pulled 5 cm to the right a force with a magnitude of 300 N is need to hold it in place.  What is the work done by the spring when the block moves from x = 10 cm to x = 12 cm.  Express your answer in joules.