solve (n-1)d = 40,\frac{n}{2}\left[2\times 100 + (n-1)d\right] = 180(n-2)