 It is equal to the time taken to travel X distance that is 7 hours divided by the time taken to travel 7 miles, that is 2 hours (7/2), therefore x/7=7/2, hence X=24.5 miles.The same method can be applied to the problem