How do I add 2 variables under one name to a list?

Google Photos

I have two variables global CurrentX and global CurrentY, these are the point data in the canvas which are variable, and for every x and every Y line are variable, for XY I see the coordinates set found_red_forward_X ....., I would like to save them in the list / table / or in any case, that each coordinate could be subject to further calculation. I don't know how to write it down, and the worst part is that I don't know how to access this data later HELP ME

So you want to trace the image and save the coordinates of only those pixels that are red?