So since the race is 250 meters, and Bob has a head start of 40 meters, that means he only needs to go 210 meters. You divide those 210 meters by 7, and then multiply that by 2, as he moves 7 meters in 2 seconds, and you will have the time it takes him to get to the end. That would be 60 seconds.
Then go to Joe. He goes 4 meters a second, but has to go the full 250 meters. So you would divide the 250 by 4, to get how long it takes him to get to the end, and get 62.5 seconds.
Because Bob takes less time to get to the end, he wins the race. Now to get how many meters he won by, you would find the difference in their times, which is 2.5 seconds, and find out how many meters Joe would go in that time, which would be 10 meters.
Therefore Bob wins the race, 10 meters ahead of Joe.