The question is asking you to look at the pattern between the amount of miles and the fare, and the determine the fare based on the pattern.
In this question, the pattern is that for every 0.1 mile that goes up, $0.05 is added on to the original price. 0.05 × 60 = $3, which is how much would be added on for 6 miles on top of 0.1 miles. If you add them together, you get $5.05 for 6.1 miles, but then you can subtract $0.05 because you only want 6 miles and get your answer as $5, which is option B.