Igneous, sedimentary, and metamorphic rocks are found at the same cliff

Sedimentary
Metamorphic
Which statement is correct about the rocks at this location?
M. All three types of rock will become metamorphic if they stay at the surface of Earth.
P. If this location is buried deep underground, only the metamorphic rock will melt because it has already been heated before.
R. The metamorphic rock and sedimentary rock were already at this location and magma flowed into the other rocks.
S.
The igneous rock will become metamorphic rock after the rock in the cliff side Turns into sediment

P. If this location is buried deep underground, only the metamorphic rock will melt because it has already been heated before.