A triangle has sides of length (x+5)cm, (2x -1) cm and (3x+7) cm. How do you find the value of x given the perimeter of the triangle is 29cm?