how do I join two meshes without leaving a gap?
Possibly you can use Ctrl-R to cut loops in the plane on the right to match the number you have on the left.(I subdivided mine because I was dealing with a full plane that was square, yours is probably not needing that)

Then you can use Looptools add-on to Bridge the edge loops once you select them both at the gap between the two parts.