At the first corner it is 2. The next is at 3. Let's put it in a function table. (I drew this table a little type-roughly, pardon me)
Let's find the function. It is concluded that it is in this equation:
So to find 22, just follow the function.
Therefore the answer is 23.