Choose your answer?

Rocks found on Earth are classified as sedimentary, metamorphic, or igneous based on

A). where the rocks were found..
B). how the rocks were formed..
C). the composition of the rocks..
D). the color and shape of the rocks..
B).