Explanation of c2 ruppees

sir , here as written
“A ticket for an unlimited number of rides on ‘some’ rickshaw or on ‘some’ cab. It costs c2 ruppees;”
how will we decide which rickshaw will ‘have’ unlimited rides and which rickshaw will ‘not have’
suppose the input data is as follows
20 1 30 40
2 3
123 1
123 1 1
and if the unlimited ride is not available on 1st cab and 1st rickshaw then the total cost will be very high
but if available then the cost will be low