For the sandstone to transform into metamorphic rock, it needs to experience intense heat and pressure.
Metaphorical rocks are the type of rock that arises from the transformation of other rocks and elements. For them to be formed, it is necessary that several physical-chemical processes occur that involve high values of temperature, humidity and pressure. For this reason, we can say that when the sandstone turns into these rocks, it is because it is being subjected to these factors in an intense and extreme way.