Please choose the correct answer to the question: When a volcano erupts, lava flows out from the top. What type of rock is formed as the lava cools?

Answer1: magma Answer2: igneous Answer3: sedimentary Answer4: metamorphic

Answer format: answer1/answer2/answer3/answer4