Two lines are perpendicular when they cross at a right angle (90°). On a graph you do not need to measure the angle: the gradients tell you. If you multiply the gradients of two perpendicular lines, the answer is always −1.
So the gradient of the perpendicular line is the negative reciprocal: turn the gradient upside down and change its sign. A gradient of 2 becomes −1/2, and a gradient of −3/4 becomes 4/3.
Always write the line as y = mx + c first, so that you read the correct gradient. A perpendicular bisector of AB is the line through the midpoint of AB that is perpendicular to AB.