equation of line is y = mx + b, where m is slope
Find the slope between the two points:
(10-6)/(3-1) = 2
substitute one of the points the line goes through into equation of line with slope m = 2
y = mx + b
6 = 2 * 1 + b
4 = b
equation of line
y = 2x + 4