Hey, I get confused when dealing with the static scope and dynamic scope, and for this pseudocode I have to find both. For static I believe it should print out: 9 4 2 3 however, I'm not entirely sure. Any help would be appreciated, thanks.

[CODE]Procedure main

g:integer

```
procedure B(a : integer)
x:integer
procedure A(n:integer)
g:=n
procedure R(m:integer)
write_integer(x)
x/:=2â€”integer division
if x>1
R(m + 1)
else
A(m)
--body of B
x:=a X a
R(1)
```

--body of main

B(3)

write_integer(g)

[/CODE]