Two sides of a triangle have the same length. The third side measures 2 m less than twice the common length. The perimeter of the triangle is 14 m. What are the lengths of the three sides?