The given figure is made up of square P, square Q and rectangle R. Find the length of each side of square P.

Please explain this question’s solution

Please explain this question’s solution