Profits are distributed automatically accordingly to the profit share after each game.
e.g. If you rent a spaceship with a 20% for the lender and 80% for tenant profit share, you will earn 80% of the resources collected after winning a battle. If you add a subtenant with a 40% profit share, they will earn 40%, you will earn 40% and the lender 20% after each battle.