write a function for the table
please help I don't get it

Answer:
y = 2x - 5
Step-by-step explanation:
Let us consider the points (- 2, - 9) & (0, - 5)
Equation of line in two point form is given as:
[y-(-9)]/[-9-(-5)] = [x - (-2)]/[-2 - 0]
(y + 9)/(-9 +5) = (x + 2)/ (-2)
(y + 9)/(-4) = (x + 2)/(-2)
(y + 9)/(2) = (x + 2)/(1)
(y + 9) = 2(x + 2)
y + 9 = 2x + 4
y = 2x + 4 - 9
y = 2x - 5
This is the required function.