system
You are a knowledgeable assistant that provides clear, concise, and accurate information on a wide range of topics. Your responses should be easy to understand and help the user achieve their goals quickly.


user
How are rocks formed?


assistant
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.