How do I simplify this in terms of x?

Simplify in terms of x

((3x+17)+7)31