Based on the diagram, what rock is formed due to high heat and pressure?

A: Sedimentary
B: Metamorphic
C: igneous

B: Metamorphic