The average of Aneesh’s first six test scores was 617+13+20+12+18+10=690=15.
After Jon’s third test, his average score was 14, and so the sum of the scores on his first three tests was 14×3=42.
The sum of his scores on his first two tests was 17+12=29, and so the score on his third test was 42−29=13.
(We may check that the average of 17,12 and 13 is 317+12+13=14.)
Dina wrote six tests followed by n more tests, for a total of n+6 tests.
After Dina’s first 6 tests, her average score was 14, and so the sum of the scores on her first 6 tests was 14×6=84.
Dina scored 20 on each of her next n tests, and so the sum of the scores on her next n tests was 20n.
Therefore, the sum of the scores on these n+6 tests was 84+20n.
After Dina’s n+6 tests, her average score was 18, and so the sum of the scores on her n+6 tests was 18(n+6).
Thus, 84+20n=18(n+6) or 84+20n=18n+108 or 2n=24, and so n=12.