Let Anil's speed be $a$ km/hr and Sunil's speed be $s$ km/hr.
- The distance between A and B is 45 km.
- They meet after 1 hour 30 minutes (1.5 hours). In this time, their combined distance covered equals the total distance:
$1.5a + 1.5s = 45$
$1.5(a+s) = 45$
$a + s = 30$. (Equation 1)
After meeting, Anil takes 1 hour 15 minutes (1.25 hours) more than Sunil to reach B.
Time taken by Anil to reach B is $\frac{45}{a}$.
Time taken by Sunil to reach A is $\frac{45}{s}$.
The problem states:
$\frac{45}{a} = \frac{45}{s} + 1.25$.
Multiplying by $as$:
$45s = 45a + 1.25as$.
Rearranging:
$45s - 45a = 1.25as$
$45(s - a) = 1.25as$.
Using Equation 1, we can solve this system to find $a = 12$.