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?
[tex]\bf \begin{array}{ccll} gallons&months\\ \cline{1-2} 3E12&5\\ x&1 \end{array}\implies \cfrac{3E12}{x}=\cfrac{5}{1}\implies 3E12=5x \\\\\\ \cfrac{3E12}{5}=x\implies 6E11=x\implies 600000000000=x[/tex]
if there are 200million inhabitants in A, namely 200E6 or 2E8 inhabitants, how many gallons per inhabitant from all those 6E11 gallons?
[tex]\bf \begin{array}{ccll} gallons&households\\ \cline{1-2} 6E11&2E8\\ x&1 \end{array}\implies \cfrac{6E11}{x}=\cfrac{2E8}{1}\implies 6E11=2E8x \\\\\\ \cfrac{6E11}{2E8}=x\implies \cfrac{600000000000}{200000000}=x\implies 3000=x[/tex]