The stratosphere is the layer of earth's atmosphere that is more than $10$ km and less than $50$ km above the earth's surface. Write an inequality which describes all possible heights $x$, in km, above the earth's surface that are in stratosphere.
Answer: $|x-30|< 20$
I can't seem to understand how we got to the answer. Why did we subtract $30$ from $x$ and where did the $20$ come from?

\begin{equation} 10 < x < 50\\ 10-30 < x - 30 < 50-30\\ -20 < x - 30 < 20\\ |x - 30| < 20\\ \end{equation}