well then you traveled 24 miles: 2+10 = 2 blocks, which is 24 miles because each block is 2 miles

the car gets 24 miles per gallon, so 1 gallon of gas was used.

set up the conversion factors like this:

1 gallon

24 miles * -------------- = 1 gallon

24 miiles