Assume there are five nos. They can be a, b, 140, d, e. Very importantly 140 is the median, and d and e are to be more or equal to 140. ( as they are written in increasing order).
Minimizing the other variables d and e will maximize a and b.
In order to that,
lets assume,
d and e is 140 cm.
Arithmetic mean is 124 cm and total length will be
124*5=620.
Now as earlier shown, there are three variables which are 140 cm.
Total = 140*3=420.
Subtracting, 620-420 = 200.
For a and b, dividing by 2,
we get the length is 100 cm.