The base of an isosceles triangle is four less than the sum of the lengths of the legs. If the perimeter of the triangle is 44, find the length of the three sides of the triangle.[ Only an algebraic solution will be accepted ]