In the given figure, a circle is inscribed in a quadrilateral ABCD touching its sides AB, BC, CD and AD at P, Q, R and S respectively. If the radius of the circle is 10 cm, BC = 38 cm, PB = 27 cm and AD  CD then the length of CD is