(b)
Let the two numbers are $x_{1}$and $x_{2}$
Given, $\frac{x_{1} + x_{2}}{2} = 9$ and $x_{1}.x_{2} = 16$
$\Rightarrow \ \ x_{1} + x_{2} = 18$ and $x_{1}.x_{2} = 16$
Hence, required equation is
$x^{2} -$(sum of roots)$x +$product of roots=0
$\Rightarrow x^{2} - 18x + 16 = 0$