a,
$V_{dd}=50ml=0,05l$
$\Rightarrow C_{M_{HCl}}=\dfrac{0,005}{0,05}=0,1M$
$\Rightarrow [H^+]=0,1M$
$\Rightarrow pH=-\lg0,1=1$
b,
$n_{OH^-}=n_{NaOH}=0,05.0,12=0,006(mol)$
$\Rightarrow n_{OH^-\text{dư}}=0,006-0,005=0,001(mol)$
$[OH^-]=\dfrac{0,001}{0,05+0,05}=0,01M$
$\Rightarrow pH=14-pOH=14+\lg0,01=12$