I have found similar questions as mine but none helped me with my specific problem (and i'm not quite sure whether there actually is such an easy solution..)

I have two files:

file1:

```
a b c
d e f
g h i

```

file2:

```
a b x y z
d e x
f h i

```

Desired Output:

```
a b c x y z
d e f x
g h i

```

So, I want all the rows and columns from file 1 and additionally, if there is a match of the first two columns in file 2, I want to append the rest of those columns (from file 2) to the ones in file 1 and write it in a new file.

I have tried with awk but so far I have only managed to append the columns for those rows that have a match, but the other ones (in my example the "g,h,i" row) is not printed.
Another issue seems to be that the items in file 2 do not always have the same amount of columns. 

Does anyone have an idea how to solve this?

Thank you!