https://numbas.mathcentre.ac.uk/question/33856/mean-and-mode-from-a-frequency-table-with-classes-/embed/