Write a simplified addition expression with two terms for the perimeter of the polygon shown.
A six-sided polygon is shown. The sides are three x, x plus seven, eighteen, two x minus four, thirty minus two x, and four x plus one.
Enter the correct answer in the box.