Given:
The mass of the object is,

The spring constant is,

The compression of the spring is,

To find:
The work would be done on this spring to compress it
Step-by-step explanation:
The force on the spring is,

The work done in the spring,

Hence, the work is 3.375 J.