In a triangle, sum of the lengths of any two sides is always greater than the length of the third side. If the sides of a triangle are a, b and c,
a+b>c
Since the side with length 5 is smaller than the side with length 7, let us assume a=5
5+b>c
Let's assume the side with length 7 is the largest side of the triangle. In that case, c=7
Thus, 5+b>7
b>2
Now, let's assume the side with length 7 is NOT the largest side of the triangle. In that case, b=7
Thus, 5+7>c
12>c
c<12
Since, b and c represent the third side of the triangle in the above two cases, the third side lies between 2 and 12
2<thirdside<12
so mim perimeter=5+7+2=14