Since each mile costs $2 and that it asks you to figure out the price for 5 miles, 8 miles and 20 miles, you multiply 2 with the amount of miles travelled
So if you multiply both the numerator and denominator by the same number, you get the initial number. Your goal here is to get the same denominator so that you can solve the problem easily! hope it helped!