If there are 15 terms in an AP, then the 8th term, a8 will be the middle term of the AP.
This means that a8 will be the arithmetic mean of a1 and a15, a2 and a14, and so on.
Let us try to solve this in another way.
Let a and d denote the first term and the common difference of the AP respectively.
The nth term of this AP is given by
an=a+(n−1)d.
Let xth term be the required term (such that the aritmetic means of the first and xthterm equals the middle term).
⟹12×(a+x)=a8
⟹12×(a+x)=a+7d
⟹x=a+14d=a15
Similarly,
12×(a6+x)=a8
⟹12×(a+5d+x)=a+7d
⟹x=a+9d=a9
Also,
12×(a14+x)=a8
⟹12×(a+13d+x)=a+7d
⟹x=a+d=a2