Love these kinds of algebraic word problems.
Your equation is as follows:
60 + 9x = 14x
Peter started at 60 steps and takes 9 steps for x number of times and John takes 14 steps x number of times. When both sides of the equation are equal then they have both taken the same number of steps and are side by side in the race.
If you solve for x you get 12
Peter has taken 60 + 9 * 12 steps for a total of 168 steps
John has taken 14 * 12 steps for a total of 168 steps
Lori