dia10

k=\frac{5-1}{2-\left(-2\right)}=\frac{4}{4}=1
y-y_1=k\cdot\left(x-x_1\right):
y-5=1\cdot\left(x-2\right)
y-5=x-2
y=x-2+5
y=x+3