A line is graphed in the xy-plane. The line passes through the points (0,−2) and (2,0). Which of the following is the equation of the line?
y=x+2
y=x−2
y=−x−2
y=2x−2