In a certain triangle, two of the sides have measures of 12 and 27. If the triangle is isosceles, then which of the following could be the measure of the third side?