the 8th term of a linear sequence is 18 and the 12th term is 26. find the common difference

Just apply your definitions:

a + 7d = 18
a + 11d = 26

I would subtract the two to get d, then sub that back into the first
-- very easy.