If A has a units then B produces 2a units. C produces 2 units from each unit of B, so C produces 4a units.
Combined output from A and B=3a units.
C sells 12000 units so 4a=12000, a=3000. Combined output from A and B=3a=9000 units, but they only sell half of what they produce=4500 units. In all, the three departments produce 12000+4500=16500 units.