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

(31-3)/(8-1) = 4