We first calculate the number of millimoles present before mixing. For an acid or a base, the relation between molarity, volume and millimoles is given by
millimoles=M×V(mL)
For the strong acid HCl we have
50 mL×1 M=50 millimoles.
For the strong base NaOH we have
30 mL×1 M=30 millimoles.
The neutralisation reaction is
HCl+NaOH→NaCl+H2O
Since the reaction proceeds 1 : 1, 30 millimoles of HCl are completely consumed by the 30 millimoles of NaOH. The excess unreacted acid is
50−30=20 millimoles of HCl.
These 20 millimoles of HCl remain in the final solution. The total volume after mixing becomes
50 mL+30 mL=80 mL=0.08 L.
Hence the molarity of H+ ions in the mixture is
[H+]=0.08 L20 mmol=0.08 L0.020 mol=0.25 M=2.5×10−1 M.
We now use the definition of pH:
pH=−log[H+].
Substituting [H+]=2.5×10−1 M gives
pH=−log(2.5×10−1).
Using the logarithmic identity log(ab)=loga+logb, we write
log(2.5×10−1)=log2.5+log10−1=0.3979−1=−0.6021.
Therefore
pH=−(−0.6021)=0.6021.
The problem states the pH in the form x×10−4. We write
0.6021=6021×10−4.
Thus x=6021 (nearest integer).
So, the answer is 6021.