Perimeter-Area Problem

James Tanton posted the following interesting problem on his Twitter account:

A square of area A, perimeter P. For which values 0< r <1 is there a line across the square that chops off rA of the area and rP of the perimeter as shown? (r = 1/2, yes; r = 1/3, no.)

See the Perimeter-Area Problem.