Divide a group of points to create lines

Hi
I have a set of points in 2 groups and want to create lines between them based on their index.
How can I do that?
I need to separate them and create a line.

Well, without the file it is hard to tell, but this will probably work for you

line connection test.gh (5.9 KB)

thx a lot