In physics, work is defined force that causes displacement. So this can be expressed by the following equation:
[tex]W=Fs[/tex]
Where:
[tex]F:Force \\ \\ s:Displacement[/tex]
The force can be found as:
[tex]F=ma \\ \\ F=5(10)=50N[/tex]
And for the displacement:
[tex]s=6-2=4m[/tex]
The force (weight) is down and the displacement is up, then the work must be negative. So:
[tex]W=-(50)(4) \\ \\ \boxed{W=-200J}[/tex]