Soap is a cleansing agent made by reacting alkali metal hydroxide and fatty acids. In most cases, the alkali metal…