calculate the energy consumed by a computer(150 W) that is used for 2.0 hours and a laser(250 W) that is used for 10 min?

Answer is 1.2 Mj

150 * 2*3600 j

+ 250 * 10*60 j
=1230000 j
=1.23 Mj