In a triangle whose perimeter is 44 centimeters, the length of the longest side is 4 cm less than the sum of the lengths of the other sides. Twice the length of the shortest side is 9 cm more than the difference between the lengths of the other sides. How long is each side of the triangle?