After rocks are broken apart through weathering, carried away by erosion, and deposited in a body of water, the next step is compaction and cementation into sedimentary rock, followed by heat and pressure into metamorphic rock. Therefore, the correct answer is:
compaction and cementation into sedimentary rock, then heat and pressure into metamorphic rock.