Points given: (0,0) and (1,2).
Equation used: y = mx+b
m is the slope (slope is m=y2-y1/x2-x1), and
b is the y-intercept
The equation of the line that passes through the points y=2x