The correct option is C Both Ca2+ and Mg2+ ions
Ethylenediaminetetraacetic acid (edta) is a reagent that forms edta-metal complexes with many metal ions (but not with alkali metal ions such as Na+ and K+). In alkaline conditions (pH9) it forms stable complexes with the alkaline earth metal ions Ca2+ and Mg2+. The edta reagent can be used to measure the total quantity of dissolved Ca2+ and Mg2+ ions in a water sample. Thus the total hardness of a water sample can be estimated by titration with a standard solution of edta.
Hence option C is correct