Example input, file1 a b c

example input, file2 6 7 8

This is the output I want, file out a c 7