Unable to use the same variable twice

I am not sure how to edit the scope to change it to a higher level. Can you inform me on how to go about that?