how to solve time and distance problems quickly