The correct completion of the statement is:
Oil typically forms in a shallow marine environment ... whereas coal typically consists of the altered remains of land plants from swamps.
This accurately describes the environments in which these fossil fuels form.