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