Question 17ABCD is a square, and P lies inside it. Given AP=a, BP=2a and CP=3a, find the area of the square in terms of a.