How do you find f(2) and f(0) given the expressions on the graph

Consider that the value of f(0) is given by the value of the y-coordinate, of the point on the line when x = 0.
Then, by checking the given graph, you have:
f(0) = -1
f(2) is given by the value of the y-coordinate of the point on the line when x = 2.
f(2) = -5