Pick a point P on the line segment AB and make squares: A side of one square is AP and a side of the other square is PB. Where should the point P be located to satisfy the condition that the sum of the areas of the two squares is a minimum? Explain.