It would appear that they have found the equation of the line by using (x,y,z) = (0,0,2) + t(3,1,6)

In this case substituting in t=-3 gives the point A and substituting in t=2 gives the point B. Hence the segment of the line between the points A and B will be defined by using the restriction: -3<=t<=2 .