Working on the book: Lang, Serge & Murrow, Gene. "Geometry - Second Edition" (p. 23)
If two sides of a triangle are 12 cm and 20 cm, the third side must be larger than __ cm, and smaller than __ cm.
The answer given by the author is:
$20 - 12 < x < 12 + 20$, where x is the length of the third side.
Triangle Inequality. Let $P, Q, M$ be points. Then $d(P, M) < d(P, Q) + d(Q, M)$.
What calculations did the author perform in order to achieve the subtraction on the left side of $20 - 12 < x < 12 + 20$ ?

It's from $20\lt x+12$; subtract $12$ from both sides.