Amide synthesis of acetophenetidin

a. Mechanism of amide synthesis of acetophenetidin
b. Mechanism of Williamson ether synthesis of acetophenetidin

How do these synthesis apply principles of green chemistry, and which one is greener? Explain.