No of moles of H+ from HCl is,
50×1=50 mmol
No of moles of OH− from NaOH is,
30×1=30 mmol
30 mmol of OH− will neutralise 30 mmol of H+ and the solution left with 20 mmol of H+
∴
Concentration of H+ is,
[HCl]=2080=14M=2.5×10−1M
pH=−log2.5×10−1=1−0.3979=0.6021
pH=6021×10−4