Pick a value from a wifi scan and use it after to compare

my teachers. I'm working on the code but don't know how to continue