a + b = 4000 (1) 0.12a + 0.08b = 0.094*4000 (2) From equation (1), express a = 4000 - b ans substitute it into equation (2), replacing "a" there 0.12*(4000-b) + 0.08b = 0.094*4000. Now b == 2600. ANSWER. Population B is 2600 residents; population A is the rest 4000-2600 = 1400 residents.