A company has two departments, A and B. The average salary in department A is $50,000, and the average salary in department B is $60,000. If the total number of employees in both departments is 100 and the overall average salary for both departments combined is $54,000, how many employees are there in each department? Let's think step by step and output the final answer within \boxed{}.
user