Explanation:
For parallel line:
slope of given line:
m=-1/2
Parallel lines have equall slopes:
required slope=-1/2
For perpendicular line:
m1×m2=-1
-1/2×m2=-1
m2=2
slope of perpendicular line=2
Note:if you need to ask any question please let me know.