These two phrases mean basically the same thing and emphasize that all people spoke the same language. (See: [[rc://en/ta/man/translate/figs-parallelism]])
Possible meanings are 1) "in the east" or 2) "from the east" or 3) "to the east." The preferred choice is "in the east" because Shinar is to the east of where scholars believe the ark came to rest.