The free body diagram of the system can be shown as,
The work done by gravity on sliding crate can be given as,
The angle between distance and force is 180 because the force acts in the downward direction whereas the block slide in the upward direction.
Substitute the known values,
Thus, the work done by gravity on the sliding crate is -107.8 J.