Mass of James = 54.431kg
Distance ran by James = 3.6576m
Mass of John= 41.277kg
Distance relan by John= 3.6576m
Work done by James = 54.431kg*10N/kg*3.6576m= 1990.87J
Work done by John= 41.277kg*10N/kg*3.6576m=1509.75J
Horsepower = work done / time since time is same, James has larger horsepower