The sum of the first term and the fourth term of an arithmetic sequence is equal to 10, while the difference between the second term and the third term is equal to 2?

The sum of the first term and the fourth term of an arithmetic sequence is equal to 10, while the difference between the second term and the third term is equal to 2?

So A2 = 6, A3 = 4. So A1 = 8, d = - 2, so an = a | + (n-1) d = - 2n + 10, Sn = n (a1 + an) / 2 = - n square + 9N