Which is the equation for line AB

The equation for line AB would be x = -5 but It looks like it is asking for line AD.
The equation of line AD can be written in slope-intercept form y=mx+b, m being the slope and b the y intercept.
The y intercept would be point D since it is on the y axis. The y intercept would be (0,6) or 6 in the equation.
The slope can be calculated by the slope formula which is m = y2-y1/x2-x1
For the slope form we have to plug in both points A and D
6-1 over 0+5 y x
The slope is y/x and 6-1=5 and 0+5=5. This means that the slope is 5/5 or just 1. Now that we have the slope, we can form the equation y=x+6.
Since we have to turn it into standard form, we move x to the other side of the equation using Subtraction property of equality to get as the final answer
-x+y=6