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.
---
Read the slope from $y=mx+b$
$ 2x+4y=8 \qquad$ ... solve for y
$ 4y=-2x+8\qquad$ ... /$\div 4$
$y= -\displaystyle \frac{1}{2}x+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$