the first term of a linear sequence is 3 and the 8th term is 31. Find the common differences

a_8 = a_1 + 7d

so, 7d = 31-3 = 28
d = 4