(a) They are stretched by the same amount?
(b) They are stretched by the same force?
a) Let x be the extension in each spring.
The work done Wa = (1/2) Ka x^2
and Wb = (1/2) Kb ...
Very detail answer with easy to understand steps. It will enable you to do similar problems yourself.