Calculating Averages From Grouped Data Percentile