You can
put this solution on YOUR website!Let

= time in hours for 1st flight
Let

= distance between towns in km
Equation for A to B:

Equation for B to A:

----------------------------
Bt substitution:

hrs
and, since

The distance between the towns is 6,000 km
check:

OK