(a) Reactions and solubility
Primary and secondary amines replace the Cl of benzenesulphonyl chloride; the tertiary amine does not react.
C6H5SO2Cl+CH3(CH2)3NH2→C6H5SO2NH(CH2)3CH3+HCl
C6H5SO2Cl+(C2H5)2NH→C6H5SO2N(C2H5)2+HCl
(The HCl is neutralised by the excess KOH.)

N-Butylbenzenesulphonamide still has one H on nitrogen. The –SO2– group is strongly electron-withdrawing, so this N–H is acidic (NCERT). KOH removes the proton, and the anion is stabilised because its negative charge is spread over N and the two sulphonyl oxygens:
C6H5SO2NHC4H9+KOH→C6H5SO2N−K+C4H9+H2O

The ionic potassium salt dissolves in water. N,N-Diethylbenzenesulphonamide has no H on nitrogen, so it cannot form a salt with KOH. It stays a neutral, water-insoluble compound.
(b) Separation
- After the reaction, the unreacted 3° amine (N,N-diethylethanamine, b.p. 362 K) is distilled off from the mixture.
- The residue is filtered. The solid (or insoluble oil) is N,N-diethylbenzenesulphonamide, from the 2° amine.
- The alkaline filtrate contains the potassium salt from the 1° amine. Acidifying it with dilute HCl puts the proton back on N, and N-butylbenzenesulphonamide precipitates:
C6H5SO2N−K+C4H9+HCl→C6H5SO2NHC4H9+KCl
- Each sulphonamide is hydrolysed separately to give back its own amine.

(c) Basic but unreactive
Basic strength measures how readily the lone pair accepts a proton, and N,N-diethylethanamine does this very well. Sulphonamide formation is different: nitrogen must attack sulphur, and then the nitrogen must lose an H to become a neutral, stable sulphonamide. A tertiary amine has no H on nitrogen, so no stable sulphonamide can form, and the amine is recovered unchanged. The Hinsberg test therefore depends on the number of H atoms on nitrogen, not on the basic strength.