<s>[INST] You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise. Question:  How are sedimentary rocks formed? Context: Sedimentary rocks are formed through the deposition and solidification of sediment derived from preexisting rocks or the accumulation of remains of plants and animals. Answer: [/INST]Sedimentary rocks are formed from the deposition and solidification of sediment that is derived from preexisting rocks, or by the accumulation of remains of plants and animals.</s>