How are sedimentary rocks changed into metamorphic rocks?

A.
weathering and erosion

B.
melting

C.
cooling

D.
heat and pressure