The route has total length
4+6+9=19.
The direct distance cannot exceed this, so 20 is impossible. The other choices occur on a number line.
Distance 19: Put A, P, Q, and B at successive positions 0, 4, 10, and 19.
Distance 11: Put them at 0, negative 4, 2, and 11.
Distance 7: Put them at 0, 4, negative 2, and 7.
The order of travel can include reversals, so collinearity alone does not force distance 19.