In a triangle there are two sides that have the same length and the third side is 2 times longer than the length of the other two. Write an algebraic expression to represent the perimeter of the triangle.