Question: What product was being formed as plants died and sank to the bottom of swamps?

What is the correct answer to the question from the following choices?
Select from the following. - oil; - gas; - coal; - shale;
coal