One day, Tim's mathematics teacher looked at his homework and saw that he had got all his sums right.