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

the 8th term is 7 terms away from the 1st term, so

d = (31-3)/(8-1) = ____