If term 1 is a1, then, for an arithmetic series an = (n-1)d + a1 . The sum of the a's from 1 to n will be na1 + (1+2+3+...n-1) d. This last expression can be written as na1 + (n-1)(n)/2 * d = Sn
In this case, Sn = -20, a1 = 25 and d = -6. This leads to a quadratic in n. (I get n = 10)