Identify the series of geologic processes that can transform magma into granite, granite into sand, and sand into sandstone.

Cooling; weathering and erosion; compacting and cementing
Melting; heat and pressure; cooling
Weathering and erosion; compacting and cementing; cooling
Weathering and erosion; compacting and cementing; heat and pressure

Cooling; weathering and erosion; compacting and cementing