Two sides of a triangle have the same length. The third side measures 3 m less than twice that length. The perimeter of the triangle is 25m. Find the lengths of the three sides.