The maximum area that can be enclosed by four straight pieces of fencing of lengths 1, 2, 3, and 4 yards, is 2 square yards.