Find the dimensions of a rectangle of greatest area which has a fixed perimeter p.