The distance between the line and the point is:
$$ d = \frac{\sqrt{ 10 }}{ 5 } $$The distance from the point $ (x_0, y_0) $ to the line $ Ax + By + C = 0 $ is given by:
$$ d = \frac{ \left| Ax_0 + B_yo + C \right| }{ \sqrt{A^2 + B^2}} $$To apply this formula, we first need to express the line in standard form
$$\begin{aligned} y & = 3 x + 2 \\3x-y+2&=0\end{aligned}$$After substituting: $ A = 3 $ , $ B = -1 $ , $ C = 2 $ , $ x_0 = 0 $ and $ y_0 = 0 $ we have:
$$ \begin{aligned} d =& \frac{ \left| 3\cdot0 +\left(-1\right)\cdot0 + 2 \right| }{\sqrt{ 3^2 + (-1)^2}} = \\ d =& \frac{ \left| 0 + 0 + 2 \right| }{\sqrt{ 9 + 1}} = \\ d =& \frac{ \left| 2 \right| }{\sqrt{ 10}} = \\ d =& \frac{ 2 }{ \sqrt{ 10 } } = \\ d =& \frac{\sqrt{ 10 }}{ 5 } \end{aligned} $$