A group of friends decided to share the cost of a meal equally. If each friend contributed $2.50 more than planned, they would collect $50 in total. However, if each friend contributed $1 less than planned, they would collect only $30 in total. How many friends are in the group? Let's think step by step and output the final answer within \boxed{}.
user