It will take train B a longer time to come to come to rest at the target train station
Explanation:
We know that train B has a higher mass compared to train A.
The same force is applied by the brake of the train to bring them to rest.
From Newton's second law of motion; force is a product of mass and acceleration:
Force = mass x acceleration
Now, the more the mass of a body, the higher the force applied to cause it to accelerate. To bring such a body to rest, a higher force must also be applied to it