Let the fixed charge of the car be ₹ x and,
Let the variable charges of the car be ₹ y per km.
So according to the question, we get 2 equations
x + 12y = 89 —— (i) and,
x + 20y = 145 —— (ii)
Now, by solving (i) and (ii) we can find the charges.
On subtraction of (i) from (ii), we get,
-8y = -56
y = −56 − 8
⇒ y = 7
So, substituting the value of y = 7 in equation (i) we get
x + 12y = 89
x + 84 = 89
x = 89 – 84
⇒ x = 5
Thus, the total charges for travelling a distance of 30 km can be calculated as: x + 30y
⇒ x + 30y
= 5 + 210
= ₹ 215
Therefore, a person has to pay ₹ 215 for travelling a distance of 30 km by the car.