Please choose the correct answer to the question: Which type of rock is formed when hot lava cools?

Answer1: coal Answer2: igneous Answer3: limestone Answer4: metamorphic

Answer format: answer1/answer2/answer3/answer4
Answer: answer2