When 1,5-dibromopentane reacts with ammonia, among severalproducts isolated is a water-soluble compound A that rapidly givesa precipitate of AgBr with acidic AgNO3 solution. Compound A isunchanged when treated with dilute base, but treatment of A withconcentrated NaOH and heat gives a new compound B (C10H19N) thatdecolorizes Br2 in CCl4. Compound B is identical to the productobtained from the reaction sequence shown below. Identify A and B.Hint: First, identify compound B by completing the reactionsequence. The result of the bromine test suggests the presence of aparticular functional group in compound B.