Ilya and Anya each can run at a speed of 8.70 \rm{mph} and walk at a speed of 3.60 \rm{mph}. They set off together on a route of length 5.00 \rm{miles}. Anya walks half of the distance and runs the other half, while Ilya walks half of the time and runs the other half.
How long does it take Ilya to cover the distance?
Now find Ilya's average speed.