An easy way to quickly figure it out is to find the y-intercept of the graph. So, from the graph you can see that the line cuts the y axis at -2. Therefore, as per the equation of a straight line, y=mx+c
option B shows that the y intercept is -2. Thus option B is the answer to this question.