The costs have to be split evenly - you cannot ask for payment of more than an share of the direct costs of the flight proportionately split between the number of people on board.
The flight canont be advertised in any way, otherwise it is considered that you are offering and subsequently providing a public service.
You are profiting financially from it, as you are having the costs of your flight paid for by someone else.