Answer
Spring A does more work when the springs are compressed at the same distance.
Work Step by Step
Spring Force=K$\times$Distance
If the springs are compressed at the same distance, then K is the only factor when determing work (which is directly related to force). Spring A has a greater K so it will do more work when compressed at the same distance as spring B.