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