To find f(2), look and see where the line crosses the Y axis, when The line is on X 2.
The line is on Y = -2, so the answer would be -2.