Question: both soap and detergent are some types of salts?
Answer: Soaps are sodium or potassium salts of long-chain carboxylic acids. Detergents are generally ammonium or sulphonate salts of long chain carboxylic acids. Soaps do not form lather in hard water because hard water contains calcium and magnesium salts.