Calculate the missing frequency from the following distribution, it being given that the median of the distribution is 24.