The green states are used to double and half the two numbers. If the first number is even, this is done on the current row. If the first number is odd, the doubled resp. halfed values are written on the row below. At the end, the blue states sum up the addends.