2. (20%) The density function for the triangular distribution is given by
$$f(y) = y + 1 - x \quad \text{for} \quad x - 1 < y \leq x \quad \text{and}$$
$$f(y) = -y + 1 + x \quad \text{for} \quad x < y \leq x + 1$$
Find the mean absolute deviation $E[|Y - x|]$.