Answer:
Igneous rock are rocks that arise from the formation of magma, as this internal terrestrial magma cools it solidifies (within the crust) forming rocks of different sizes and structures, instead metamorphic rocks are rocks formed by the modification of other pre-existing ones in the interior of the Earth through a process called metamorphism.
On the other hand, sedimentary rock is the rock that is formed by mineral sedimentation, of different minerals of large or small diameter, which compared to igneous extrusive rock, this is the solidification of magma from the earth but in the earth's crust.
Explanation:
Magma is the material that forms rocks initially, but in a liquid state, which is found inside the Earth at extremely high temperatures. When the magma rises to the surface, it cools and solidifies (consolidation) forming igneous rocks that can be internal or external depending on whether they are inside or outside the Earth's crust. On the other hand, there are other processes where rocks are formed, but not initially or primarily, but from other rocks or other minerals such as sedimentation.