How to access a player's inventory in different games?

I have a farming game, and I want you to be able to go to a market game (Which is the parent game of the farm game) and trade, buy and sell items that you collected. Essentially accessing inventories through both games. How would I achieve this?