Scheme 2:
Reagents and conditions: i. X-I (Y = X), TEA, DMF; ii. SOCl
2
80 °C; then X-H and YH, TEA, CH
2
Cl
2
.