In a group of 10 people, some pairs are friends. If each person has exactly 3 friends, how many unique pairs of friends are there in the group? Let's think step by step and output the final answer within \boxed{}.
user