Train A, travelling at 84 kmph, overtook train B, traveling in the same direction, in 10 seconds. If train B had been traveling at twice of its original speed, then train A would have taken 22.5 seconds to overtake it. Find the length of train B, given that it is half the length of train A.