A straight existing wall can form one side of a rectangular enclosure. Twenty units of fence are available for the other three sides. Ignoring gate widths and fence thickness, what dimensions give the greatest area? This original Math Kangaroo extension contrasts that constraint with fencing all four sides, so the familiar answer about a square must be checked rather than copied.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send KANGAROO-S8-1130 and tell us your school year and question.
Name the lengths and the paid boundary
Let x be the side parallel to the wall and y the distance out from it. Only one x side needs new fence, but both y sides do. The constraint is x plus twice y equal to twenty. Writing twice x plus twice y instead would pay for an extra side that the stipulated wall already supplies, changing the feasible rectangles.
Express area with one permitted variable
The area is x times y. Substituting x equal to twenty minus twice y gives twenty y minus twice y squared, with y between zero and ten. The endpoints describe degenerate zero-area limits. This permitted range should accompany the quadratic, because an algebraic bound only solves the geometric problem if an admissible rectangle reaches it.
Complete the square and check the equality case
The area is fifty minus twice y minus five squared. It is at most fifty, with equality at y equal to five. Then x is ten, both lengths are positive and the fence requirement is ten plus five plus five, exactly twenty. Thus a ten-by-five rectangle, rather than a square, attains the maximum under the three-sided rule.
Compare with fencing four sides
If all four sides need the same twenty-unit fence, x plus y equals ten. The area becomes twenty-five minus x minus five squared, so a five-by-five square maximises it at twenty-five. Both results are correct for their own constraints. Keeping the fence budget the same does not keep the enclosure family the same when a free wall supplies one boundary.
Test the tempting square under the wall rule
A square under the three-sided rule has three equal paid sides, so each side is twenty thirds and its area is four hundred ninths, below fifty. A square can be feasible without being optimal. This explicit comparison explains the failed shortcut more clearly than merely announcing that the ten-by-five answer is larger.
Preserve what the model leaves out
The wall is assumed straight and long enough for the ten-unit side, with no extra required boundary. A limited wall, clearance requirement or unused fence option needs a revised feasible set. A complete solution states which sides consume material, derives the one-variable area and checks the equality dimensions against the original budget, rather than choosing a shape from visual symmetry alone.
Continue reading: Math Kangaroo Measurement: Rainfall Depth Becomes Volume Only after Using Area.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send KANGAROO-S8-1130. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
