The perpendicular bisector of AB is every point equidistant from A and B. Explore that with P, then step through finding its equation: the midpoint, the perpendicular gradient, then y − y₁ = m(x − x₁).