Line A passes through the points (0,5) and (2,9).
Its slope is: m = (9 - 5) /(2 - 0) = 4/2 = 2
Its y-intercept is 5.
Knowing both its slope and y-intercept, its equation is: y = 2x + 5.
Line B, because it is parallel to line A, also has a slope of 2.
Its y-intercept is -2.
Its equation is: y = 2x - 2.