We need to find the equation using the given points.
First, we need to find the slope, which is given by the next formula:
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]Use P1(1,2) and P2(5,10).
Replacing:
[tex]m=\frac{10-2}{5-1}=\frac{8}{4}=2[/tex]Now, use the formula for slope-intercept form:
[tex]y-y_1=m(x-x_1)[/tex]Replace using P(1,2) and m = 2. Then:
[tex]\begin{gathered} y-2=2(x-1) \\ \text{Solve for y:} \\ y-2=2x-2 \\ y=2x-2+2 \\ \text{Hence, the result is:} \\ y=2x \end{gathered}[/tex]