A 3' cube sits on level ground against a vertical wall. A 12' ladder on the same ground leans against the wall such that it touches the top edge of the box.
How far from the wall must the foot of the ladder be, if it is to reach maximum height whilst meeting the foregoing conditions?