Let S1,S2....S9 be intermadiate stations
The person taking train from the station Si(1≤i≤9) can get down any of the next (10-i) stations.
Total no of possible tickets
=∑9i=1(10-i) =45
The six different tickets must be out of these 45 tickets.
Required number of ways = 45C6 = 45C39 .