Varest How to create variables after ForEachLoop?

Thank You Thompson to give me the good direction.I will try to do this.