How are igneous rocks formed?

A. Heat and pressure from nearby magma changes existing rock.
B. Lava or magma cools and then crystallizes.
C. Sediments deposit in a lake and turn to stone.
D. Lava or magma heats up and crystallizes.