MIT Entrance Exam Problem from 1869 | Can you simplify this?