(n)hardnessa quality of water that contains dissolved mineral salts that prevent soap from lathering“the costs of reducing hardness depend on the relative amounts of calcium and magnesium compounds that are present”