How do metamorphic rocks form?

A) Heat and pressure
B) Cooled magma or lava
C) Compaction and cementation
D) Melting