12345678
for ( list1 range ) { for ( list2 range ) { if ( list1[i] == list2[j] ) save to list3 or something; } }