for finding the mean of grouped frequency distribution