Two trains each 500 m long are moving on parallel tracks towards each other at speeds 10 m/s and 15 m/s respectively. In how much time will they pass each other?