The given equation is of the form y = m x + b where m is the slope and b is the y intercept that is value of y when x =0 , or we can say b is the initial value.
In the given equation which is y = 4t+2, on comparing we will get m =4 that is slope is 4 and here slope represents the rate or speed and 2 is the y intercept that is b. And 2 represents the initial position that is, the ant is 2 units from the home initially .
Use the distance formula to get your answer. The distance formula is d=sqrt(x2-x1)^2+(x1-y1)^2 Once you plug your coordinates into it, you'll get your answer.