When the material P mined from the earth is processed, a black solid Q is produced which consists mainly of carbon. When another material R obtained from trees is heated in an insufficient supply of air, it produces another solid fuel S which also consists mainly of carbon. Name P, Q, R and S.
P: Coal (mined from the Earth)
Q: Coke (solid, consists mainly of carbon, produced during coal processing)
R: Wood (obtained from trees)
S: Charcoal (consists mainly of carbon)