Rock cycle is a process through which one form of rock is converted to another one. There are three types of rocks in rock cycle i.e., igneous rock, metamorphic rock, and sedimentary rock. Each of these rock can change into the other kinds by physical processes: cooling, melting, heat, weathering/erosion, compacting (squeezing tightly together). cementing, and pressure.
When heated deep under ground, rocks become magma(liquid rock). when magma comes to ground it is called lava. Weathering and erosion forms sediments, this sediments form sedimentary rocks in future.
So, the answer for this question is
sedimentary rock> pressure and heat > metamorphic rock> melting
sedimentary rock > weathering and erosion > sediment
igneous rock > metamorphism > metamorphic rock