First let us find the slope;
Slope for (x₁, y₁) and (x₂, y₂): (0, 6) and (2, 10)
Slope: (y₂ -y₁) / (x₂ -x₁)
Slope: ( 10 - 6) / (2 - 0) = 4/2
Slope = 2
Using (y - y₁) = m(x - x₁)
using (0, 6) as (x₁, y₁)
(y - y₁) = m(x - x₁)
(y - 6) = 2(x - 0)
y - 6 = 2x
y = 2x + 6 is the equation of line through both points.