Perpendicular lines are define as when two lines intersect with each other and forms 90 degrees angles on four angles. The slope of each line is just the negative reciprocal.
For example, line 1 has a slope of 1/2. Then, line 2 should have a slope of -2 in order to form perpendicular with line 1.