Methylamine and dimethylamine can be distinguished by the carbylamine test.
Carbylamine test: Aliphatic and aromatic primary amines on heating with chloroform and ethanolic potassium hydroxide form foul-smelling isocyanides or carbylamines. Methylamine (being an aliphatic primary amine) gives a positive carbylamine test, but dimethylamine does not.
Aniline and benzylamine can be distinguished by their reactions with the help of nitrous acid, which is prepared in situ from a mineral acid and sodium nitrite. Benzylamine reacts with nitrous acid to form unstable diazonium salt, which in turn gives alcohol with the evolution of nitrogen gas.
Hope this helps u Plz mark as brainliest