To reallocate RAM to "Minecraft," you'll have to edit the game's settings through whatever launcher app you use.
You can add friends in "Minecraft" through their Microsoft account's gamertag, regardless of which platform they use to play the game.