Find the length and width of a rectangle that has the given perimeter and a maximum area

Find the length and width of a rectangle that has the given perimeter and a maximum area.
Perimeter: P units