The green states are used to double and half the two numbers. This is done on the upper row, that is, the old values are replaced. If the first number is odd, the blue states are used to add the second number to the result in the lower row, before doubling and halving the two numbers.