Option (b) is correct.
The sun is the ultimate source of almost all kinds of energy on earth, either directly or indirectly. Fossil fuels (coal, oil and gas) are the transformed forms of plants (and animals) which once lived on the earth and grew to capture the energy of the sun.