Earth materials

Coal most directly forms from which precursor and setting?