In an isosceles triangle (a triangle where two of the three sides called legs are equal), the legs
are 1 unit less than twice the length of the base. If the length of the base of the triangle is
represented by x, create an expression that represents the perimeter of the triangle.