Complete the following reactions:

 
sustitucion-nucleofila
 
SOLUTION:
 
sustitucion-nucleofila
The iodide ion acts as a nucleophile, replacing the chloride.
 
sustitucion-nucleofila
The acetate ion replaces bromine by the SN2 mechanism.
 
sustitucion-nucleofila
The cyanide ion acts as a nucleophile, replacing the bromine.
 
sustitucion-nucleofila
Tosyl is replaced by the SN2 mechanism by iodide.
 
sustitucion-nucleofila
The sulfur compound attacks the carbon of the methyl iodide, replacing the iodine.
 
sustitucion-nucleofila
This last reaction occurs in two stages. In the first, a good leaving group is obtained by using tosyl chloride. In the second stage, the replacement of the tosylate by iodide occurs.