Given that, three consecutive terms of an A.P. are the lengths of the sides of the triangle. If the perimeter of the triangle is 6 m, find the middle term of the three consecutive terms.