to get slope of given line solve for y
x-2y=7
2y=x-7
y=½x-7/2
so the slope of the perpendicular line must be the negative inverse of this line. since this line has slope ½, the perpendicular line must have slope-2. plug known information into
y=mx+b
y=-2x-8