the table of ordered pairs shows the coordinates of the two points on the graph of a function. which equation describes the function?please answer fast

In this case, we'll have to carry out several steps to find the solution.
Step 01:
Data
x y
- 2 2 point 1
4 - 1 point 2
Equation of the line = ?
Step 02:
Equation of the line
slope formula:
[tex]m\text{ = }\frac{y2-y1}{x2-x1}=\frac{-1-(2)}{4-(-2)}=\frac{-3}{4+2}=\frac{-3}{6}=\frac{-1}{2}[/tex]point-slope form of the line
(y - y1) = m (x - x1)
[tex]\begin{gathered} (y\text{ - 2) = }\frac{-1}{2}(x-(-2)) \\ y\text{ = }\frac{-1}{2}x\text{ -}\frac{2}{2}+2 \\ y\text{ = }\frac{-1}{2}x-1+2 \end{gathered}[/tex]y = -1 /2 x + 1
The answer is:
The equation of the line is y = -1 /2 x + 1