.
There is another way to solve the problem, using only one unknown.
Let x be distance traveled by the taxi, in miles.
Then the walking distance is (31-x) miles.
The time spent by the taxi is hours.
The time walking is hours.
The time equation is
+ = 2 hours.
To solve the equation, multiply both sides by 100. You will get
25*(31-x) + 2x = 200
25*31 - 25x + 2x = 200
25*31 - 200 = 25x - 2x
x = = 25 km.
ANSWER. The distance to pay the cab driver for is 25 kilometers.
CHECK. + = + = + = = 2 hours. ! Precisely correct !
Solved.
---------------
No one of the two methods is better than the other.
They both are good.
Which one to use, depends on your preferences and methods you use in the class.
But you will benefit, if you know BOTH methods.