How do we know when to do the opposite reciprocal?

Answer:
The corner of a rectangle is 90 degrees. Therefore AB will be perpendicular to AD.
Step-by-step explanation:
Since those two lines are perpendicular, their slopes will be opposite reciprocals of each other. So to find AB, first find AD, then take the opposite reciprocal of that slope.