in reply to Comparing masses in two txt files

Sounds like a homework assignement to me. I'll give you a hint:

Use a foreach loop inside another foreach loop. One loop loops over @List1, the other over @List2