https://numbas.mathcentre.ac.uk/question/33855/mean-and-median-from-a-frequency-table-with-classes-1-b/embed/