Equation of the line passing through the point (5,7) and having y-intercept 5 is
x−y+5=0
2x−y+5=0
2x−5y+25=0
2x−5y−25=0
If y-intercept of the line is 5 then the line passing through the point (0,5)
The equation of the line joining two points x1,y1 and x2,y2 is y−y1=y2−y1x2−x1x−x1
Hence the equation of the line joining (5,7) and (0,5) is
y−7=5−70−5x−5y−7=25x−55y−35=2x−102x−5y+25=0
Therefore, the equation of the required line is 2x−5y+25=0