The perimeter of an isosceles triangle is 25 ft. The length of the third side is 2 ft less than the length of one of the equal sides. Find the measurement of the three sides of the triangle.