Hard water is simply water with traces of minerals, the most common of which is calcium and magnesium. Hard water…