Which type of rock is formed when rocks are melted deep in the Earth and cool to form new rocks?

A. Igneous
B. Metamorphic
C. Sandstone
D. Sedimentary