The length of a rectangle is given as 3x-2. The width of the rectangle is given as x+3. If the perimeter is measured as 46 centimeters, what is the length of the rectangle in centimeters?