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.

The correct table is option 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.