In the following question, a sentence is divided into four parts (P,Q,R,S). Rearrange it in the proper sequence in order to make a meaningful sentence.
P: over millions of years, buried deposits of dead plant matter and
Q: bacteria are compressed between layers of sediment
R: where high pressure and heat convert them to carbon-containing fossil fuels
S: such as coal, oil, and natural gas