Hello,
I did the calculations and goes as follow:
there are 6! possibilities in total.
However, there are 5! possibilities for denver to be before san francisco.
if u denote them as : Denver = 1
San Francisco = 2
1 2 x x x x
1 x 2 x x x
1 x x 2 x x 5 possibilities but u need to multiply by 24 since
1 x x x 2 x 3 4 5 6 can be arranged in 4! ways that is 24
1 x x x x 2 so total for this arrangment is 24 X 5 = 120
x 1 2 x x x
x 1 x 2 x x
x 1 x x 2 x Same here 120
x 1 x x x 2
x 1 x x x x
and you go on so u need to multiply 120 by 5 to check the possibilities of denver being before san francisco 120 X 5 = 600
However, The total number of possibilities of the cities visits is 6! which is 720
Therefore the probability of denver being before San Francisco = 600/720 = 0.83333 .
I hope that the answer consist with the expect results of yours.