In an AP, the first term is 2, the last term is 29 and the sum fo all the terms is 155. Find the common difference.