When magma is cooled, it changes into which of the following?

Igneous rock
Metamorphic rock
Sedimentary rock

Igneous rock