A lineal equation has the next form:

where m is the slope and is calculated as follow:

For this case
y1=20
y2= 25
x1=12
x2= 5
so:

then the equation will be:

Using one of the points we calculate the b
we are going to use y=25 x=5

Clearing the b we get:

b=200/7 or b=28.57
So the final equation is:
