Two trains are moving opposite each other at a speed of 75km/h and 60km/h and cross each other in 8 seconds. A person sitting in a fast train observed that he is moving the other train in the same direction crosses in 30 seconds, find the length of both