Answer:
Option D
Explanation:
Let equation of line be
$\frac{x}{a}+\frac{y}{2a}=1$
$\Rightarrow$ =2x+y=2a
Distance from origin is
$|\frac{2a}{\sqrt{(2)^{2}+(1)^{2}}}|=|\frac{2a}{\sqrt{5}}|$
$\Rightarrow$ $|\frac{2a}{\sqrt{5}}|=1$
$\Rightarrow$$2a=\pm \sqrt{5}$
Hence , equation of line is $2x+y= \pm \sqrt{5}$