If the sum of an AP is -25 and 8th term is 17, find the common difference

assuming you meant the sum to be the 1st 8 terms, then you know that

8/2 (a+17) = -25
now solve for a and then a+7d = 17