Start with pointers at both ends (maximum width). The only way to potentially increase area is to find a taller line.
Compute area with current pointers.
Move the pointer pointing to the shorter line inward.
The key insight: moving the taller line can never help. The area is limited by the shorter line, and width decreases.
This greedy choice is provably optimal.