Calcium carbonate and magnesium carbonate are correct. Pearls are primarily composed of calcium carbonate (CaCO3) in the form of aragonite crystals, held together by conchiolin (an organic protein). Natural pearls also contain small amounts of magnesium carbonate. The other options are incorrect - CO & CO2 are gases, calcium hydroxide is a different compound, and sodium oxide is not found in pearls.