.
Let J be john's speed, in km/h.
Then the Wilbur' speed is J-12 km/h.
In one hour John covered J kilometers, while Wilbour covered J-12 kilometers in opposite direction.
Hence, the distance between them in one hour is J + (J-12) = 2J-12.
From the other side, it is 159 km, according to the solution.
It gives you an equation
2J - 12 = 159.
The set up is completed.
--------------
To see many other samples, examples and solved problems of this kind, look into the lessons
- Travel and Distance problems
- Travel and Distance problems for two bodies moving in opposite directions
- Travel and Distance problems for two bodies moving in the same direction (catching up)
in this site.