Answer:
x + 2y = 20
Explanation:
We require the slope and the midpoint of AB
The equation of a line in slope- intercept form is
y = mx + c ( m is the slope and c the y- intercept )
Calculate m using the slope formula
m =

with (x₁, y₁ ) = A(2, 4) and (x₂, y₂ ) = B(6, 12)
m =
=
= 2
Given a line with slope m then the slope of a line perpendicular to it is
= -
= -

-----------------------------------
Given endpoints (x₁, y₁ ) and (x₂, y₂ ) then the midpoint is
[
,
]
Thus midpoint of AB = (
,
) = (4, 8 )
--------------------------------------------
y = -
x + c ← partial equation of perpendicular bisector
To find c substitute (4, 8) into the partial equation
8 = - 2 + c ⇒ c = 8 + 2 = 10
y = -
x + 10 ← in slope- intercept form
Multiply through by 2
2y = - x + 20 ( add x to both sides )
x + 2y = 20 ← in the form ax + by = c