The annual profits earned by 30 shops of a shopping complex in a locality give rise to the following distributions: Draw both ogives for the above data and hence obtain the median.