then find the lengths of PD and CD.