https://numbas.mathcentre.ac.uk/question/38877/cormac-s-copy-of-apply-the-cosine-rule.zip?