We know
Power = Energy/time
Energy = power × time
Energy used by 250 W TV set in 2 h = 250 W × 2 h = 500 Wh
Energy used by 1000 W heater in 30 mins. (i.e., 12 h)
= 1000 W × (12) h = 500 Wh
Thus, both 250 W TV set in 2 hour and 1000 W toaster in 30 mins uses equal energy.