FYI the pricing system for the Bayern Ticket is going to change on June 10th.
A 2nd class ticket will cost EUR 22 for a single
traveller, and a further EUR 4 per additional traveller on the ticket, i.e. EUR 26 for 2 passengers, up to EUR 38 for 5 passengers
The ticket allows your other passengers to join you on the train at different stations, but you have to buy the ticket for the maximum number of people travelling (i.e. you can't buy an extra EUR 4 ticket for a passenger who joins you later).
The pricing system is changing for the following as well:
- 1st class Bayern Ticket: in future EUR 33 (single) - EUR 93 (5 people),
- Bayern Nacht ticket: EUR 22 - EUR 30
- Bayern-Böhmen ticket: EUR 25 - EUR 43
More info in German here: link