How are rocks formed?
Rocks are formed from molten rock from volcanos.  When the lava cools new earth is formed after it solidifies.  Sediment rocks are forms when particles in the air settle because of rain, or when minerals from water gather and cause mineral scale.  You also get rocks when layers of earth (e.g. dirt) build on top of each other and compress the layers beneath it for millions of years.
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction: How are rocks formed?
### Input: 
### Response: Rocks are formed from molten rock from volcanos.  When the lava cools new earth is formed after it solidifies.  Sediment rocks are forms when particles in the air settle because of rain, or when minerals from water gather and cause mineral scale.  You also get rocks when layers of earth (e.g. dirt) build on top of each other and compress the layers beneath it for millions of years.