# Problem 5. (3 points)

$A B C D$ is a cyclic quadrilateral. The extension of side $A B$ beyond point $B$ and the extension of side $C D$ beyond point $C$ intersect at point $P$. The extension of side $A D$ beyond point $D$ and the extension of side $B C$ beyond point $C$ intersect at point $Q$. It turns out that angles $B P C$ and $C Q D$ are equal. It is also known that $C Q=20, D Q=12, B P=3$. Find the square of the length of diagonal $A C$. If there are multiple possible answers, list them in ascending order separated by commas or semicolons.

Answer: 1040
# Problem 5. (3 points)

$A B C D$ is a cyclic quadrilateral. The extension of side $A B$ beyond point $B$ and the extension of side $C D$ beyond point $C$ intersect at point $P$. The extension of side $A D$ beyond point $D$ and the extension of side $B C$ beyond point $C$ intersect at point $Q$. It turns out that angles $B P C$ and $C Q D$ are equal. It is also known that $C Q=20, D Q=12, B P=3$. Find the square of the length of diagonal $A C$. If there are multiple possible answers, list them in ascending order separated by commas or semicolons.