The numbers \(1, 2, \dots, 10\) are to be entered into the \(10\) boxes shown below, so that each number is used exactly once:
\(P = (\square + \square + \square + \square + \square)(\square + \square + \square + \square + \square)\)
What is the maximum value of \(P\)? What is the minimum value of \(P\)?