[tex]m = \frac{y2-y1}{x2-x1}\\ m=\frac{4-2}{10-4} \\m = \frac{2}{6} \\\\m=\frac{1}{3}[/tex]
Therefore, the slope of the line is 1/3. In case if you want the equation too.
[tex]y=mx+b\\y=\frac{1}{3}x+b\\ 2=\frac{1}{3}(4)+b\\ 2=\frac{4}{3}+b\\ b=-\frac{4}{3}+2\\ b=-\frac{4}{3} +\frac{6}{3}\\ b=\frac{2}{3}[/tex]
Therefore, the equation is y=1/3x+2/3