An isosceles triangle has one side of length 40 and one side of length 50. What is the smallest possible that the perimeter of the triangle could be?