i can do it with 3 cells for each level. i'm sure there's a better way to do it though.
i used sumif and countif. use sumif to add up the total time depending on the level, and then countif to figure out how many of each level there is. then divide the sumif cell by the countif cell to get the average.