A bulb marked 240V, 40W is used for 30 minutes. Calculate the heat generated