Answer:
They both require extreme amounts of heat and pressure and require a large time scale.
Step-by-step explanation:
Both coal and oil are fossil fuels. That means they're formed from organic matter – stuff that was alive on Earth millions of years ago – that was covered by heavy layers of rock. Over time, the increased pressures and heat resulting from the overlying rock transformed the decomposed matter to coal or oil.