

Scum:
A white precipitate formed as a result of reaction of sodium and potassium salts of carboxylic acid (soap) with magnesium and calcium salts of carboxylic acid (Hard water) is called scum. It is insoluble in water.
C17H35COOHNa + Mg à (C17H35COOH)2 Mg + Na
C17H35COOHNa + Ca à (C17H35COOH)2 Ca + Na
Foam:
Accumulation of frothy bubbles of air formed on liquid surface as a result of reaction of sodium and potassium salts of carboxylic acid (soap) with soft water is called foam.
