In order to find the line equation, first consider that you can write the general equation of a line as follow:
y - yo = m(x - xo)
where m is the slope and (xo,yo) is any point on the line.
Calculate the slope m by using the following formula:

where (x1,y1) and (x2,y2) are any points on the line.
In this case, you have:
(x1,y1) = (2,5)
(x2,y2) = (6,21)
Replace the previous values of the parameters into the formula for m:

Now, use (xo,yo) = (2,5) and the previous value of m into the general equation for a line, and then solve for y, as follow:

The previous result is the required equation in slope-intercept form.