5. (6 points) As shown in the figure, from a rectangular piece of paper that is 50 cm long and 20 cm wide, two squares with side lengths of 12 cm and 4 cm are cut out, respectively. The perimeter of the remaining part of the figure is $\qquad$ cm.
【Analysis】The perimeter of the remaining part $=$ the perimeter of the original rectangle + 2 times $(12+4)$ cm. Based on this, we can set up the equation $(50+20) \times 2+(12+4) \times 2$ to calculate the solution.

【Solution】Solution: $(50+20) \times 2+(12+4) \times 2$
$$
\begin{array}{l}
=70 \times 2+16 \times 2 \\
=140+32 \\
=172 \text { (cm) }
\end{array}
$$

Answer: The perimeter of the remaining part of the figure is 172 cm.
Therefore, the answer is: 172.