Both of these are linear functions: Distance A is d=2.5h and is proportional to time because the distance is just 2.5 times however many hours you have traveled. Distance B is d= 2(h-1) + 4. This is not proportional to time but it is a linear function.