A triangle has a perimeter of 50. If two of the side lengths are equal and the third side is five more than the equal sides, what is the length of the third side?