Here's a problem to solve: Which event must have occurred before coal and oil could be formed?

Among the 4 following options, which is the correct answer?

- A: Plants began appearing on Earth.
 
- B: Dinosaurs became extinct on Earth.
 
- C: Earth's continents became separated.
 
- D: Earth's moon began orbiting.
 