The average height of the 12 players is 170 cm. Using the formula for average:
\[ \frac{H}{12} = 170 \implies H = 170 \times 12 = 2040 \text{ cm} \]
The average height of the 7 players is 166 cm:
\[ \frac{H_7}{7} = 166 \implies H_7 = 166 \times 7 = 1162 \text{ cm} \]
The total height of the remaining 5 players is:
\[ H_5 = H - H_7 = 2040 - 1162 = 878 \text{ cm} \]
The average height of the remaining 5 players is:
\[ \frac{H_5}{5} = \frac{878}{5} = 175.6 \text{ cm} \]
The average height of the remaining 5 players is 175.6 cm.