https://numbas.mathcentre.ac.uk/question/123498/pattern-match-pull-common-factors-out.zip?