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