First, find the slope of the two coordinates.
m = y2 - y1 / x2 - x1
m = 7 - 1 / 2 - 0
m = 6 / 2
m = 3
The slope of the line is 3.
Substitute the slope and either given coordinate into the equation of a line:
y - y1 = m(x - x1)
Using the coordinate (2, 7):
y - 7 = 3(x - 2)
y - 7 = 3x - 6
Add 7 to both sides of the equation.
y = 3x + 1
Solution: y = 3x + 1