Answer: 29
Step-by-step explanation:
The variable amount is given a initial value of 0
Therefore, the first method call:
cookieJar(7)
amount + cookieJar
amount = 0 + 7 = 7
And the value of 7 is returned for amount at the start of the block
Thus, when cookieJar is called the second time ;
cookieJar(22)
amount + cookieJar
amount = 7 + 22 = 29
And the value of 29 is returned for amount at the start of the block