Use the image to answer the question.

An illustration shows a coordinate plane with the x-axis ranging from negative 9 to 9 in one unit increments, and the y-axis ranging from negative 11 to 11 in one unit increments. A solid line passes through five plotted points and extends beyond. A solid line with arrows at both ends passes through points with coordinates left parenthesis 0 comma 0 right parenthesis, left parenthesis 2 comma 1 right parenthesis, left parenthesis 4 comma 2 right parenthesis, left parenthesis 6 comma 3 right parenthesis, and left parenthesis 8 comma 4 right parenthesis. The solid line forms the hypotenuse for two triangles. The first triangle is marked with a dotted line and has vertices with coordinates left parenthesis 0 comma 0 right parenthesis, left parenthesis 4 comma 0 right parenthesis, and left parenthesis 4 comma 2 right parenthesis. The base is labeled as 4, and the perpendicular height on the right is labeled as 2. The second triangle is marked with a dashed line and has vertices with coordinates left parenthesis 4 comma 2 right parenthesis, left parenthesis 8 comma 2 right parenthesis, and left parenthesis 8 comma 4 right parenthesis. The base is labeled as 4, and the perpendicular height on the right is labeled as 2.

Use similar triangles to determine the slope of the line. Write your answer in fraction form.

The slope is ____.

To find the slope of the line, we can use the similar triangles formed by the two right triangles in the illustration.

The smaller triangle has a base of 4 and a perpendicular height of 2, while the larger triangle has a base of 4 and a perpendicular height of 2 as well.

Since the triangles are similar, the ratio of their base to perpendicular height will be the same.

So, the slope of the line can be calculated as (4/2) = 2.

Therefore, the slope of the line is 2.