metamorphic rocks are formed by rocks being exposed to extreme heat and pressure & magma is extremely high in temperature ->  heat from magma can change a rock into metamorphic rock  heat from magma can change a rock into metamorphic rock & sedimentary rock is a kind of rock -> heat from magma can change sedimentary rock into metamorphic rock