The child does not understand that data has to be arranged in ascending or descending order before finding the median.
The data should be arranged in ascending or descending order to get correct median.
On arranging in the asxending order, we get:
3,5,14,18,20.
Thus the median is 14.