Write the following as an algebraic expression. Then simplify.
The perimeter of a triangle whose sides are of lengths 3x, 3x +3, and x.