At the point of overtake, distance travelled by Ram and Shyam must be the same.
So, if this is assumed as $t$ hours after 9:00, we have
$5 \times t = 10 \times \left(t- \frac{45}{60} \right)$
$\implies 20 t = 40t - 30$
$\implies t = \frac{3}{2}$
So, after 1.5 hrs from 9:00 i.e., at 10:30 Shyam overtakes Ram.