Question 16In the diagram, $ABCD$ is a rectangle in which $AB=34$ and $BC=12$. $P$ and $Q$ are points on $AB$ and $CD$ respectively such that $\angle CPQ$ and $\angle PQA$ are right angles. Find the sum of the two possible lengths of side $AP$.