If a triangle has side lengths of 14 centimeters and 18 centimeters and the perimeter is 49 centimeters, how long is the third side?