All you need to do is to divide 140 with 6. Make sure you do it this way and not other because that is the order of numbers in the text of task. I assume this is for calculating consumption for some vehicle.
Anyway 140/6 = 23.333333
Which means that the ration is 23.3333 miles per gallon.