A parametric equation for a line, whose 2 points $\overrightarrow a$ and $\overrightarrow b$ are given, is - $$\overrightarrow r = \overrightarrow a + (\overrightarrow b - \overrightarrow a)k $$
Putting in the 2 points given, we get (writing in coordinate form) - \begin{align} \overrightarrow r &= (2,0,0) + ((0,1,0)-(2,0,0))k \\\ &= (2,0,0) + (-2,1,0)k \end{align} Rescaling $ k = \frac{t}{2}$ to match with your values, we get - $$\overrightarrow r = (2-t)\hat i + \frac{t}{2}\hat j$$