I dont get it, pls help me

Answer:
B
Step-by-step explanation:
Each tick = + or - 2 depending on which quadrant and axis
So the first line (the slanted one) intersects the y axis at (0,5) and continues until (2,5)
Then the line becomes straight (the y remains constant) from (2,5) (the points x value is 2) to (2,10) (the points x value is now 10)