A group of friends went to a restaurant for dinner. There were 3 tables of friends. The first table had 10 friends, the second table had 8 friends, and the third table had 12 friends. After dinner, 3 friends from the first table left, 2 friends from the second table moved to the third table, and 4 new friends joined the third table. How many friends are left at each table after these changes? Let's think step by step and output the final answer within \boxed{}.
user