The lenght of the base of an isosceles triangle is x. The lenght of a leg is 2x-5. The perimeter of the triangle is 20. Find x.