https://numbas.mathcentre.ac.uk/question/70261/averages-from-frequency-tables-mean-median-and-mode/embed/