Magnesium (Mg) is a key component of chlorophyll, which traps sunlight energy in photosynthesis (A-3). Calcium (Ca) ions play a vital role in muscle contraction (B-4). Strontium (Sr) salts are used to impart a red colour to flames, such as in fireworks (C-1). Barium sulfate (BaSO4) is an opaque compound used in medicine as a contrast agent (barium meal) to examine the alimentary canal of a patient (D-2).