Let d be the common difference.
Given:
first term = a = 2
last term = l = 29
Sum of all the terms = Sn = 155
Sn = n/2[a + l]
155 = n/2[2 + 29]
n = 10
There are 10 terms in total.
Therefore, 29 is the 10th term of the AP.
Now, 29 = a + (10 – 1)d
29 = 2 + 9d
27 = 9d
d = 3
The common difference is 3.