Answer
$a.$
A line parallel to the given line has slope $m=\displaystyle \frac{1}{2}.$
$b.$
A line perpendicular to the given line has slope $m=-2$
Work Step by Step
If two nonvertical lines are parallel, then they have the same slope.
If two nonvertical lines are perpendicular, then the product of their slopes is -1.
---
Reading the slope from $y=mx+b$
$y= \displaystyle \frac{1}{2}$: $\quad$ The given line has slope $m=\displaystyle \frac{1}{2}$.
$\displaystyle \frac{1}{2}\cdot(-2)=-1$
$a.$
A line parallel to the given line has slope $m=\displaystyle \frac{1}{2}.$
$b.$
A line perpendicular to the given line has slope $m=-2$