(a) Let $t_{1}\ and\ t_{2}$ be times taken by the car to go from $X\ to\ Y$ and then from $Y\ to\ X$ respectively.
Then, $t_{1} + t_{2} = \frac{XY}{v_{u}} + \frac{XY}{v_{d}} = XY\ \left( \frac{v_{u} + u_{d}}{v_{u}v_{d}} \right)$
Total distance travelled
$\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ = XY + XY = 2\ XY$
Therefore, average speed of the car for this round trip is
$Average\ speed = \frac{distance\ travelled}{time\ taken}$
$v_{av} = \frac{2\ XY}{XY\ \left( \frac{v_{u} + v_{d}}{v_{u}v_{d}} \right)}or\ v_{av} = \frac{2v_{u}v_{d}}{v_{u} + v_{d}}$