Perpendicular means it’s opposite reciprocals for example : the slope is 2 then the perpendicular line’s slope would be -1/2 because it flips the number also makes it the opposite sign.
If it’s parallel then the slope would be the same
I hope that helps