A group of 6 friends went on a road trip and decided to share all expenses equally. They spent $240 on gas, $180 on food, $360 on lodging, and $120 on entertainment. How much does each friend have to pay? Let's think step by step and output the final answer within \boxed{}.
user