Delay on capturing variables

I am sorry to ask such a basic question. I might be too tired of there is something I am missing here. On the activity I am sending I would expect the variables G, B and z to be the same after I press button act9, and that does not happen. It looks there is a delay. What am I doing wrong?

Thank you!

I guess that the problem comes from captures of variables that are, at the same time, interrelated in a graph. I understand that Desmos used parallel execution instead of sequential execution.
I am not sure how to overcome this. I guess I will have to change the approach.