Solution:
Find ∠PAQ in degrees.
Answer: 40∘
We have AB2=BC(BC−CP)=BC⋅BP, so triangle ABC is similar to triangle PBA.
Also, AB2=BC(BC−2CQ)+AC2=(BC−CQ)2−CQ2+AC2, which rewrites as AB2+CQ2=BQ2+AC2.
We deduce that Q is the foot of the altitude from A.
Thus, ∠PAQ=90∘−∠QPA=90∘−∠ABP−∠BAP.
Using the similar triangles, ∠PAQ=90∘−∠ABC−∠BCA=∠BAC−90∘=40∘.