Sort:  

Bro first find the length of train A by relativespeed and speed fourma