The perimeter of a quadrangle equals 32 cm. After dividing the figure with a diagonal, there are two triangles with 18 cm and 20 cm perimeters. What is the dividing diagonal?