Recall that


Substitute speed=3mph and distance =2mile, we get
Time taken by James to clime mountain is

Substitute speed=4mph and distance =2mile, we get
Time taken by James to run back is


Substitute speed=2mph and distance =2mile, we get
Time taken by Lucas to clime mountain is

Substitute speed=5mph and distance =2mile, we get
Time taken by Lucas to run back is


James takes 1.17 hours to finish the race and Lucas takes 1.4 hours to finish the race.
James is faster than Lucas.