The slope-intercept form of a line is:
y = mx + b
where m is the slope and b is the y-intercept.
Substituting with the point (2, 10), that is, x = 2 and y = 10; and with b = 4, we get:
[tex]\begin{gathered} 10=m\cdot2+4 \\ 10-4=m\cdot2 \\ \frac{6}{2}=m \\ 3=m \end{gathered}[/tex]Finally, the equation of the line is:
y = 3x + 4