If the perimeter of an isosceles trapezoid is 59.9 meters, and the bases measure 23.2 meters and 17.1 meters, find the length of the legs of the trapezoid