
To find median $ m $ use formula:
$$ m = \frac{ a + b } { 2 } $$After substituting $a = 40\, \text{cm}$ and $b = 31\, \text{cm}$ we have:
$$ m = \frac{ 40\, \text{cm} + 31\, \text{cm} } { 2 } $$ $$ m = \frac{ 71\, \text{cm} } { 2 } $$ $$ m = \frac{ 71 }{ 2 }\, \text{cm} $$