In isosceles triangle the length of the base is twice shorter than the length of a leg. The perimeter of this triangle is 50cm. Find the lengths of all sides.