1. pay before ur firend paid and leave, so u don't need to care they pay less.
2. get the bill first when waiter put on the table and calculate each one who have to pay, tell them they should pay this amount, if they don't believe, tell how u calculate
( I do this way, becasue I had same situation with u many times)