On what factor does the production of foam depend?
Production of foam depends upon free availability of a hydrophobic portion of the soap. Hydrophobicity is the property of a molecule to repel water. A long hydrocarbon chain is hydrophobic in nature.