Given data:
* The time for which James walked with u = 4 mph is,

* The time for which James run with speed v = 10 mph is,

Solution:
The distance traveled in the first 2700 seconds is,

Substituting the known values,

The distance traveled by James in the next 1800 seconds is,

Thus, the total distance traveled by James is,

Thus, the total distance traveled is 28800 miles.