An art class is making a mural for the school that has a triangle drawn in the middle. The length of the bottom of the triangle is x. Another side is 1 more than three times the length of thr bottom of the triangle. Write and simplify an expression for the perimeter of the triangle.