Step-by-step explanation:
equation of the line is
y =mX + C
to calculate m(slope) :
m= 10-2/5-1 = 2
to find C ....Substitute in eq. by one point
2= 2×1+C
C. = 0
So the eq. is
y=2X