The lengths of 40 leaves of a plant are measured correct to the nearest millimeter, and the data obtained is represented in the following table: Find the median length of the leaves.