Correct option is C
Let the initial quantity of the mixture be x liters.
The ratio of A to B is 7:5, so the amount of A initially = (7/12) × x.
After removing 9 liters, the new amount of A becomes (7/12) × (x - 9).
After adding 9 liters of B, the new ratio becomes 7:9.
Solving this equation gives x = 36, so the initial amount of A = (7/12) × 36 = 21 liters.