Work out the tip, the tax and the total for a bill, then divide it fairly between however many people are paying.
Tip and tax are calculated from the subtotal. Rounded shares distribute any remainder to the first people so the split adds back to the total.
Subtotal
Tax
Tip
Total
47.20 each