A rancher has 400 feet of fencing with which to enclose two adjacent rectangular corrals

A rancher has 400 feet of fencing with which to enclose two adjacent rectangular corrals.
What dimensions should be used so that the enclosed area will be a maximum?