Answer:
The total bill was $84
Explanation:
Ok so we know a few things, we know that the total cost of the bill is divisible by both 6 and 4, and we know that if we call the total cost of the bill x and the amount each person would pay if it was divided for 6 people y we can write these equations:


Now we can substitute the first equation into the second and solve for x

Therefore, the total bill was $84