Which type of rock is found by cooling and solidification of magma?

A ) Metamorphic

B ) Sedimentary

C ) Fossilized

D ) Igneous ✅