The ratio between the departments is
A: B: C
15000 : 18000 : 9000
15 : 18 : 9
5 : 6 : 3
The budget needs to be divided into 5+6+3 = 14 parts
The budget for one part is 22000/14
The budget for department B is

Rounded to the nearest dollar, the budget is $9429