If a straight line passes through a certain point, it must be written as a (x-x0)+b (y-y0) = 0.
(A and B here are different from the topic)
If two straight lines are perpendicular, their slopes are negative reciprocal.
Then exchange the coefficients of x and y on the known straight line, and then one of them has multiple negative signs, and that's it.