The line with equation y = (10/7)x - 3 has slope 10/7
Any line perpendicular to the given line has slope -7/10
Equation of line g: y - (-6) = (-7/10)(x - 5)
y + 6 = (-7/10)(x - 5)
y + 6 = (-7/10)x + 7/2
y = (-7/10)x - 5/2
or: 7x + 10y = -25