Power Rating = 
 W
Time for which the machine is operating = 2 hours
Time in seconds = 2 × 60 × 60
Time = 7200 seconds
Now, we need to use the formula for work done.
Work done = Power × time
Work done = 

Work done = 
 Joules
Hence, work done by the machine in 2 hours is 
 J.