how are speed and distance similar?