Now I will express the positions of the two trains as functions of time so that I can solve for when they are equal to each other.
Train A:
,
, x=30t-4.0
Train B:
,
, x=-35t+6.0
When they cross paths, their positions (x) will be equal.
Set the two equations equal to each other and solve for t.