Solution:Company A:
Let total employees initially = ‘a’
Remaining employees after leaving = (a - 45)
Newly joined employees = 25% of (a - 45) = (0.25a - 11.25)
Now,
80% of a = (a - 45) + (0.25a - 11.25)
0.8a = 1.25a - 56.25
a = 125
Company B:
Let total employees initially = ‘b’
Remaining employees after leaving = (b - 60)
Newly joined employees = 20% of (b - 60) = (0.2b - 12)
Now,
75% of b = (b - 60) + (0.2b - 12)
0.75b = 1.2b - 72
b = 160
Company C
Let total employees initially = ‘c’
Remaining employees after leaving = (c - 30)
Newly joined employees = 28% of (c - 30) = (0.28c - 8.4)
Now,
80% of c = (c - 30) + (0.28c - 8.4)
0.8c = 1.28c - 38.4
c = 80
Company D:
Let total employees initially = ‘d’
Remaining employees after leaving = (d - 50)
Newly joined employees = 35% of (d - 50) = (0.35d - 17.5)
Now,
60% of d = (d - 50) + (0.35d - 17.5)
0.6d = 1.35d - 67.5
d = 90
Total employees in companies A and D together initially = a + d = 125 + 90 = 215