It is given that the lengths of two sides of a triangle are both 7 and the length of the remaining side is an integer. Find the maximum possible and the minimum possible perimeters of the triangle. ​