Two runners start a race at the same time and finish in a tie

Two runners start a race at the same time and finish in a tie. Prove that at some time during the race they have the same speed. [Hint: Consider f(t)=g(t)-h(t) , where and are the position functions of the two runners.