The pictures show three different rocks.

Which table correctly matches the rocks with their correct type and process of formation?
A.

Rock Rock Type Rock Formation
X sedimentary Magma or lava cools and becomes a solid.
Y metamorphic Rock is changed by extreme heat or pressure.
Z igneous Particles are compacted and fused together over time.
B.

Rock Rock Type Rock Formation
X metamorphic Magma or lava cools and becomes a solid.
Y igneous Rock is changed by extreme heat or pressure.
Z sedimentary Particles are compacted and fused together over time.
C.

Rock Rock Type Rock Formation
X igneous Magma or lava cools and becomes a solid.
Y sedimentary Rock is changed by extreme heat or pressure.
Z metamorphic Particles are compacted and fused together over time.
D
.

Rock Rock Type Rock Formation
X igneous Magma or lava cools and becomes a solid.
Y metamorphic Rock is changed by extreme heat or pressure.
Z sedimentary Particles are compacted and fused together over time.

A

Explanation:
- Rock X is igneous, which forms when magma or lava cools and becomes a solid.
- Rock Y is metamorphic, which forms when rock is changed by extreme heat or pressure.
- Rock Z is sedimentary, which forms when particles are compacted and fused together over time.