let's use engineering notation for the sake of brevity.
1 trillion is 1,000,000,000,000, or just 1E12, twelve zeros.
1 million is then 1E6, six zeros.
we know the discharge for one day is 3E12 gallons, and that'd do just fine for country A for 5 months. How many gallons in 1 month only?
if there are 200million inhabitants in A, namely 200E6 or 2E8 inhabitants, how many gallons per inhabitant from all those 6E11 gallons?