OR like this one
> Example:

 Vehicle A took 30 seconds to transfer 1 passenger to the second city
 Vehicle B took 25 seconds to transfer 2 passenger to the second city
 Vehicle C took 45 seconds to transfer 3 passenger to the second city
 Vehicle D took 24 seconds to transfer 4 passenger to the second city
 Vehicle E took 43 seconds to transfer 40 passenger to the second city

 Vehicle A took 20 seconds to travel back to the first city
 Vehicle B took 35 seconds to travel back to the first city
 Vehicle C took 50 seconds to travel back to the first city
 Vehicle D took 34 seconds to travel back to the first city
 Vehicle E took 45 seconds to travel back to the first city

 Vehicle A took 30 seconds to transfer 4 passenger to the second city
 Vehicle B took 25 seconds to transfer 2 passenger to the second city
 Vehicle C took 45 seconds to transfer 1 passenger to the second city
 Vehicle D took 24 seconds to transfer 40 passenger to the second city
 Vehicle E took 43 seconds to transfer 3 passenger to the second city
 ...
 ..
 ..until reaches 500 people
 people transfer: 500
 Total Time: 800.9
-- 
Posted via http://www.ruby-forum.com/.