Two goods trains having equal lengths, take 30 seconds and 45 seconds respectively to cross a telegraph post. If the length of each train is 360 meters, in what time (in seconds) will they cross each other when traveling in opposite direction? A) 36 B) 12 C) 24 D) 48