Step 1: Convert the numbers so that 1 field = 1 number Step 2: Set every field to `value` + max(`value-left`, `value-right`) Step 3: The solution is the value of the top-most field