In which layer of the core sample would you most likely find fossil fuels?

A Layer X, on the surface of Earth
B Layer Z, deep in the earth
C Layer Y, close to the surface
D Layer X, Y, or Z, because fossil fuels are found everywhere

I chose _______ because ____________________________________________________________