Fifteen joules of work is done on object A, which is attached to an uncompressed spring, so that all the work done goes into compressing the spring.
Sixty joules of work is done on object B, which is attached to an uncompressed spring that is identical to the spring to which object A is attached; all the work done goes into compressing the spring.
How does the compression of the spring for object B compare to the compression of the spring for object A after this work is done?