Hard water forms scum with soap because soap reacts with
ACl− to form insoluble salts
BCa2+ and Mg2+ to form insoluble salts ✓
CNa+ to form insoluble salts
Ddissolved CO2 to form carbonic acid
Explanation
Soap (sodium stearate) reacts with Ca2+ and Mg2+ to form insoluble calcium and magnesium stearates, which appear as scum and waste soap.