the first rock is igneous

this rock is formed from fire/magma.Thats what igneous means,fire.It takes only a few hours after the volcano erupts for the magma to harden and the solid magma left iver is the igneous rock

next is sedamentary

this one is formed from diffrent rocks(pebbels) that make a clump under the earths surfac.Since they are under the surface there is a lot of heat and pressure which makes all the rocks one.Then it gets to the surface as a sedamentary rock.

all three rock types

finally last rock metomorphis rock

befor they are metomorphis rocks they are another type of rock that goes deep below the earth and with extrem amounts of heat and pressure it becomes metomorphis rocks.