I'm not entirely sure if this is in the right forum, I thought you would have to use some Trig functions to solve it but no one in the trig forums is responding. Also, the link below is to the drawing of the problem but the written portion is as follows:

Suppose a square ABCD has side length 1. If triangle APQ is inscribed in the square such that angle PAQ has measure 45 degrees, find the perimeter of triangle CPQ.

The picture:

imgur: the simple image sharer

Thank you for your help.