While it is possible that the company is composed only of managers and salespeople, this condition is not required.
In my earlier solution:
Average salary for managers = 100,000
Average salary for salespeople = 25,000
Average salary for all employees = 50,000
Ratio of managers to salespeople = 1:2
Let the company have 1 manager and 2 salespeople.
Thus:
Total income for the 1 manager = 1(100,000) = 100,000
Total income for the 2 salespeople = 2(25,000) = 50,000
Case 1: 1 manager, 2 salespeople, no other employees
Average salary for all 3 employees = \(\frac{150,000}{3} = 50,000\)
Case 2: 1 manager, 2 salespeople, and 2 other employees, for a total of 5 workers
Since the average salary for all 5 workers must be 50,000, the total income for all 5 workers = 5(50,000) = 250,000
Total income for the 2 other employees = 250,000 - (100,000 + 50,000) = 100,000
Average salary for the 2 other employees = \(\frac{100,000}{2} = 50,000\)
Case 3: 1 manager, 2 salespeople, and 7 other employees, for a total of 10 workers
Since the average salary for all 10 workers must be 50,000, the total income for all 10 workers = 10(50,000) = 500,000
Total income for the 7 other employees = 500,000 - (100,000 + 50,000) = 350,000
Average salary for the 7 other employees = \(\frac{350,000}{7} = 50,000\)
As the cases above illustrate, it is not necessary that the company be composed only of managers and salespeople.
The only requirement is that, if there are other employees, their average salary (50,000 in Cases 2 and 3 above) must be equal to the average salary for the whole company (also 50,000 in the cases above).