Train A and train B begin at rest in the same position. Train A begins accelerating at 2 meters per second squared. After 10 seconds have passed, train B begins accelerating at 8 meters per second squared in the same direction as train A. In seconds, how long after train A initially left does train B catch up to train A?