This reaction sequence involves nucleophilic substitution. The first reaction produces an intermediate which undergoes further substitution with AgCN to form the product.