Answer:
y = 2x + 12
Explanation:
the formula for a line is typically
y = ax + b
a is the slope of the line (expressed as y/x ratio describing how many units y changes, when x changes a certain amount of units).
b is the offset of the line in y direction (for x=0).
we have the points (3, -4) and (-7, 1).
to get the slope of the line let's wander from left to right (x direction).
to go from -7 to 3 x changes by 10 units.
at the same time y changes from 1 to -4, so it decreases by 5 units.
so, the slope is -5/10 = -1/2
and the line equation looks like
y = -1/2 x + b
to get b we simply use a point like (3, -4)
-4 = -1/2 × 3 + b
-4 = -3/2 + b
-5/2 = b
so, the full line equation is
y = -1/2 x - 5/2
now, for a perpendicular line the slope exchanges x and y and flips the sign.
in our case this means +2/1 or simply 2.
so, the line equation for the perpendicular line looks like
y = 2x + b
and to get b we use the point we know (-2, 8)
8 = 2×-2 + b
8 = -4 +b
12 = b
so, the full equation for the line is
y = 2x + 12