\[y = kx + b\]
\[(0;2):\]
\[2 = k \bullet 0 + b\]
\[b = 2 \Longrightarrow y = kx + 2.\]
\[(4;0):\]
\[0 = k \bullet 4 + 2\]
\[4k = - 2\]
\[k = - \frac{2}{4} = - \frac{1}{2} \Longrightarrow y = - \frac{1}{2}x + 2.\]
\[Ответ:y = - \frac{1}{2}x + 2.\]