Xiao Ming is 7 kilometers away from his grandmother's home. He is going to take a taxi. It costs 6 yuan per kilometer within 2 kilometers and 1.2 yuan per kilometer over 2 kilometers. How much does Xiao Ming have to pay?

Xiao Ming is 7 kilometers away from his grandmother's home. He is going to take a taxi. It costs 6 yuan per kilometer within 2 kilometers and 1.2 yuan per kilometer over 2 kilometers. How much does Xiao Ming have to pay?


2 * 6 + (7-2) * 1.2 = 18 yuan