In a certain examination, there were 100 candidates of whom 21 failed,

In a certain examination, there were 100 candidates of whom 21 failed, 6 secured distinction, 12 were placed in the first division, 43 were placed in the third division and 18 in the second division. It is known that atleast 75% marks are required for distinction, 40% for passing, 50% for second division and 60% for first division.
Calculate the median of the distribution of marks.