Hint
If we define x to be the value of one of the factors, since 1 + 2 + 3 + 4 + 5 ... + 10 = 11(5) = 55, the value of the other factor has to be 55-x.
To maximize P, you'd like to make x as close as possible to the vertex you found. What if you want to minimize P? Remember x must be an integer.
I hope this helps :)