If an isosceles triangle has perimeter P, how long must the legs of the triangle be to maximize its area? (Your answer may depend on P).