A small quantity of solid ammonium chloride (NH4Cl) was heated gently in a test tube,…