A rancher has 240 feet of fencing with which to enclose two adjacent rectangular corrals (see figure). What dimensions should be used so that the

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