coal is used for generating heat by burning & to generate something means to produce something ->  coal is used for producing heat by burning  burning wood is used to produce heat & a tree contains wood ->  burning trees is used to produce heat  coal is used for producing heat by burning & burning trees is used to produce heat -> coal and trees are both used for producing heat