To find the slope of the line that passes through the points (2, 18) and (8, 42), we can use the slope formula:
\[ m = \frac{y_2 - y_1}{x_2 - x_1} \]
Where \((x_1, y_1)\) are the coordinates of the first point and \((x_2, y_2)\) are the coordinates of the second point. For our points:
\((x_1, y_1) = (2, 18)\)
\((x_2, y_2) = (8, 42)\)
Now, substituting these values into the slope formula:
\[ m = \frac{42 - 18}{8 - 2} \]
Calculating the differences:
\[ m = \frac{24}{6} \]
Now divide:
\[ m = 4 \]
Thus, the slope of the line is 4.