Dear student,
According to the question. We know that,
Let d be the common difference.
First term (a) = -16
Eighth term (a8) = -2
an = a + (n - 1)d
or, a8 = -16 + (8-1)d
or, -2 = -16 + 7d
or, 14 = 7d
So, d = 2
Also, we know that the sum of first n terms of an AP is :
Let n be the number of terms in the given AP
Hence, there will be 18 terms in the given AP.