You need to find a slope of a line first.
m= (y2 - y1) /(x2 - x1)
(4,5) , (6, 9) so m = (9-5)/(6-4) = 4/2 = 2
1st way: (Slope- Intercept form)
y = mx +b
Pick either (4,5) or (6,9) [It does not matter which point you select]
Let's pick (4,5), and substitute for x and y in the equation y=mx+b [we know the slope and a point, we are looking for b]
5= 2(4) + b so 5 = 8 + b, then b = - 3
Equation : y= 2x - 3
2nd way: (Point- Slope form)
y - y1 = m (x - x1)
Pick either (4,5) or (6,9) [It does not matter which point you select]
Let's pick (4,5) and substitute for x1 and y1 in the equation [we have the slope and a point]
y - 5 = 2 (x - 4) [that's the equation of the line]
If you continue, you will get the exact format of the equation given firstly.
(distribute 2 over (x-4))
y - 5 = 2x - 8 (add 5 to both sides)
then
y = 2x -3