A farmer builds a rectangular pasture against a straight stone wall. He has 100 meters of fencing to enclose the other three sides. What dimensions will yield the maximum possible area for his animals?
50 meters parallel to the wall, and 25 meters for each of the two perpendicular sides.
Let width be $w$ and length parallel to wall be $l$. Fencing is $2w + l = 100$, so $l = 100 - 2w$. Area $A = w(100 - 2w) = 100w - 2w^2$. Maximizing this quadratic yields $w = 25$ and $l = 50$.
About this riddle
Logic riddles give you a few facts and ask what must be true. List what you know, cross out what cannot be, and see what is left.
Difficulty: Medium. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
If you swap my first and last letters, I am a unit of time. If you remove my middle letter, I am a type of tree. What am I?
A pair of standard six-sided dice are rolled. The product of the two numbers is 12, and the sum of the two numbers is an odd number. What are the two rolled numbers?
Four sealed envelopes are labeled 1, 2, 3, and 4. Exactly one envelope holds a cash prize. Each envelope has a clue written on it: Envelope 1: 'The prize is in an odd-numbered envelope.' Envelope 2: 'The prize is in Envelope 2.' Envelope 3: 'The prize is not in Envelope 1.' Envelope 4: 'The prize is in Envelope 3 or 4.' If exactly three statements are true and one is false, which envelope holds the prize?
A clock loses 2 minutes every single hour. If the clock is set to the correct time right now, how many days will it take for the clock to show the exact correct time again?
Four people need to cross a dark bridge at night with only one flashlight. The bridge holds at most two people at a time, and any crossing requires the flashlight. Person A takes 1 minute to cross, B takes 2 minutes, C takes 7 minutes, and D takes 10 minutes. Pairs walk at the speed of the slower person. What is the minimum time needed for all four to cross?
A digital clock displays hours and minutes in 24-hour format (00:00 to 23:59). At how many unique times during a single day is the sum of the digits in the hours equal to the sum of the digits in the minutes?

