The perimeter of a quadrilateral is 35 centimeters. Find the length of each side.

Side 1: x^2-2x
Side 2: 3x-4
Side 3: x+2
Side 4: x+9