(b) According to problem, when
$s = a,t = p$
$\because\ s = ut + \frac{1}{2}ft^{2}$ (here, $f =$acceleration)
$\therefore\ a = up + \frac{fp^{2}}{2}$ (i)
For $s = b,t = q$
$b = uq + \frac{fq^{2}}{2}$ (ii)
After solving Eqs. (i) and (ii),
$f = \frac{2(aq - bp)}{pq(p - q)}$