$\begin{array}{1 1} RX +mg \to RMgX \\ RX+KOH \to ROH+KX \\ 2RX+2Na \to R-R +2 Na X \\ RX+H_2 \to RH+HX \end{array} $