# How do you write H(x) = 2/3|x-5| as a piecewise function?

H(x)={((2x-10)/3 color(white)("xxx")"if "x>=5),((10-2x)/3 color(white)("xxx")"if "x < 5):}
If $\left(x - 5\right) < 0 \left(\rightarrow x < 5\right)$ then $\left\mid x - 5 \right\mid = 5 - x$