Rocks are classified as igneous, metamorphic, or sedimentary according to Choose from: (1). their color; (2). their shape; (3). how they formed; (4). the minerals they contain;
Your answer:
(3).