Start by finding the slope using the slope "formula"

:

Now, write y=mx+b, substituting the value you found above (the slope) for m:

Now, substitute one of the given points for x and y to solve for b. Let's use (2,10):

Now, put it all together:

That's the equation of the line!