Answer:

Explanation:
Since, the graph of the function is a straight line, function defining this function will be a linear function.
Let the equation of the line is,
y = mx + b
where m = slope of the line 
b = y-intercept 
From the graph, 
b = 2
And two points (0, 2) and (-2, 1) lie on this line.
Slope 'm' = 

 = 

 = 

Now the equation will be,
y = 
