Let $X$ be a random variable with support ${1,2,3,5,15,25,50}$, each point of which has the same probability $\frac{1}{7}$. Argue that $c=5$ is the value that minimizes $h(c)=E(|X-c|)$. Compare $c$ with the value of $b$ that minimizes $g(b)=E[(X-b)^{2}]$.
I am over here: $$h(c)=E(|x-c|)=(|1-c|+|2-c|+|3-c|+|5-c|+|15-c|+|25-c|+|50-c|)\times\frac{1}{7}$$ My main concern is I am not sure using absolute values to argue that 5 is the value that minimizes the equation.