Imagine each man is composed of the TOP and BOTTOM part, measure each part and write it down.
You'll get something like this
TOP: 1 6 10 3 8 0 4 9 2 7 11 5 9 BOTTOM: 10 5 1 8 3 0 7 2 9 4 0 6 2 HEIGHT: 11 11 11 11 11 0 11 11 11 11 11 11 11
every man is 11 [units] tall except the 13th man (the 6th column), who is 0 [units] tall
Now switch sides:
TOP: 0 4 9 2 7 11 5 9 1 6 10 3 8 BOTTOM: 10 5 1 8 3 0 7 2 9 4 0 6 2 HEIGHT: 10 9 10 10 10 11 12 11 10 10 10 9 10
now the average height is 10.15 [units].