The first three terms of a sequence are 1, 7, 8.
The average of the first four terms is 7.

So the sum of the digits of the fourth term is