Chert forms when microcrystals of silicon dioxide grow within soft sediments that become limestone or chalk. The chert formation can be either of chemical or biological origin.
Soapstone is a talc-schist, which is a type of metamorphic rock and it is largely composed of the mineral talc and is thus rich inmagnesium.