The following synthetic route is used to convert 1-bromobutane () into pentanoic acid ().
Step 1: 1-bromobutane is treated with aqueous potassium cyanide in ethanol at reflux to form compound X. Step 2: Compound X is heated with dilute sulfuric acid to produce pentanoic acid.
Explain the synthetic route by stating the reagents and conditions required for each step and identifying the type of reaction occurring in each step.