How to find median from a histogram? I am doing a course on machine learning and as part of it i am also learning statistics.

I came across one question in which i have to find the median basing on a histogram.

Median is the th  element.

But in the histogram the hint is confusing me. What does that mean
43 is the median of the frequencies, but it's not the median of the values.

For the median of the values, if you sum up all the frequencies below the median, and all the frequencies above the median, you should get the same number.



Please help.
Use the formula:
$$\text{Median}=l+\frac{\frac{n}{2}-F}{f}\cdot w=25+\frac{\frac{403}{2}-159}{82}\cdot 5=27.59$$
where $l$ is the lower border of the median group, $F$ is the cumulative frequency up to the median group, $f$ is the frequency of the median group, $w$ is the width of the median group. Also, the median group is $25-30$, because the median position $\frac{403}{2}=201.5$ is greater than $36+54+69=159$ and less than $36+54+69+82=241$.
Actually to find median from histogram you have to draw cumulative frequency more than type and cumulative frequency less than type in form of frequency curves. Then from the point of intersection you drop a perpendicular to X axis . Point of intersection with X axis is median.